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.
Definition at line 64 of file blockdev.c.
Attached file system device.
Definition at line 67 of file blockdev.c.
Referenced by NutBlockDeviceClose(), and NutBlockDeviceOpen().
Number of blocks available to the file system.
Definition at line 71 of file blockdev.c.
Referenced by NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceSize(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
Number of bytes in a block.
Definition at line 75 of file blockdev.c.
Referenced by NutBlockDeviceIOCtl(), NutBlockDeviceOpen(), NutBlockDeviceRead(), NutBlockDeviceSize(), NutBlockDeviceWrite(), and NutBlockDeviceWrite_P().
First page used by the file system.
Definition at line 79 of file blockdev.c.
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.
Definition at line 88 of file blockdev.c.
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.
Definition at line 99 of file blockdev.c.
Referenced by NutBlockDeviceIOCtl(), and NutBlockDeviceOpen().