XgPhatIo


Functions

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


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.


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7