Block volume information structure. More...
Data Fields | |
NUTDEVICE * | vol_fsdev |
Attached file system device. | |
uint32_t | vol_blk_cnt |
Number of blocks available to the file system. | |
int | vol_blk_len |
Number of bytes in a block. | |
uint32_t | vol_blk_off |
First page used by the file system. | |
uint32_t | vol_blk_num |
Next block number to read. | |
uint8_t * | vol_blk_buf |
Internal block buffer. |
Block volume information structure.
Attached file system device.
Referenced by NutBlockDeviceClose(), and NutBlockDeviceOpen().
Number of blocks available to the file system.
Referenced by NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceSize(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
Number of bytes in a block.
Referenced by NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceSize(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
First page used by the file system.
Referenced by NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
Next block number to read.
The file system driver will send a NUTBLKDEV_SEEK control command to set this value before calling the read or the write routine.
The number is zero based.
Referenced by NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
Internal block buffer.
A file system driver may use this one or optionally provide it's own buffers.
Minimal systems may share their external bus interface with device I/O lines, in which case the buffer must be located in internal memory.
Referenced by NutBlockDeviceIOCtl(), and NutBlockDeviceOpen().