PHATFILE Struct Reference
[PHAT File System]

Collaboration diagram for PHATFILE:

Collaboration graph
[legend]

Detailed Description

PHAT file descriptor structure.

Definition at line 81 of file phatfs.h.


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_pos

Current position into the file.

Definition at line 83 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_long PHATFILE::f_clust

Current cluster.

Definition at line 85 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), PhatFileOpen(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_long PHATFILE::f_clust_pos

Sector within the current cluster.

Definition at line 87 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), PhatFileOpen(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_long PHATFILE::f_sect_pos

Position within the sector.

Definition at line 89 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), PhatFileOpen(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_long PHATFILE::f_clust_prv

Previous cluster used,.

Definition at line 91 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_long PHATFILE::f_mode

File open mode flags.

Definition at line 93 of file phatfs.h.

Referenced by PhatDirOpen(), and PhatFileOpen().

PHATDIRENT PHATFILE::f_dirent

Directory entry of this file.

Definition at line 95 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), PhatFileOpen(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

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.

Definition at line 101 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), and PhatFileOpen().

u_long PHATFILE::f_de_offs

Offset into the sector containing the directory entry.

Definition at line 103 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), and PhatFileOpen().

u_int PHATFILE::f_de_dirty

Directory entry change marker.

Definition at line 105 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatFileOpen(), and PhatFileWrite().

u_short PHATFILE::f_pde_clust

First cluster of the parent directory, low word.

Our directory entry is located in this cluster.

Definition at line 110 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), and PhatFileOpen().

u_short PHATFILE::f_pde_clusthi

First cluster of the parent directory, high word.

Definition at line 112 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), and PhatFileOpen().


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/