Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

_PHATFILE Struct Reference
[PHAT File System]

#include <phatfs.h>

Collaboration diagram for _PHATFILE:

Collaboration graph
[legend]

Detailed Description

PHAT file descriptor structure.


Data Fields

u_long f_pos
 Current position into the file.
u_long f_clust
 Current cluster.
u_long f_clust_pos
 Sector within the current cluster.
u_long f_sect_pos
 Position within the sector.
u_long f_clust_prv
 Previous cluster used,.
u_long f_mode
 File open mode flags.
PHATDIRENT f_dirent
 Directory entry of this file.
u_long f_de_sect
 Sector of the directory entry.
u_long f_de_offs
 Offset into the sector containing the directory entry.
u_int f_de_dirty
 Directory entry change marker.
u_short f_pde_clust
 First cluster of the parent directory, low word.
u_short f_pde_clusthi
 First cluster of the parent directory, high word.


Field Documentation

u_long _PHATFILE::f_de_sect
 

Sector of the directory entry.

For the root directory this value is zero, because the root doesn't have any entry in another directory.

u_short _PHATFILE::f_pde_clust
 

First cluster of the parent directory, low word.

Our directory entry is located in this cluster.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/