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

PHAT Block I/O
[PHAT File System]

Collaboration diagram for PHAT Block I/O:


Detailed Description

Reading and writing data blocks.


Functions

int PhatSectorFlush (NUTDEVICE *dev, int bufnum)
 Flush sector buffers.
int PhatSectorRead (NUTFILE *blkmnt, u_long sect, u_char *buf)
 Read sector.
int PhatSectorLoad (NUTDEVICE *dev, u_long sect)


Function Documentation

int PhatSectorFlush NUTDEVICE dev,
int  bufnum
 

Flush sector buffers.

The volume must be locked before calling this function.

Parameters:
dev Specifies the file system device.
bufnum The buffer number to flush. If -1, all buffers are flushed.
Returns:
0 on success, -1 on failures.

int PhatSectorRead NUTFILE blkmnt,
u_long  sect,
u_char buf
 

Read sector.

The volume must be locked before calling this function.

Parameters:
blkmnt Specifies the mounted block device partition.
sect Sector to load.
buf Points to a buffer which will receive the sector data.
Returns:
0 on success, -1 on failures.


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