Nut/OS  4.10.3
API Reference
_BLOCKVOLUME Struct Reference

Block volume information structure. More...

Collaboration diagram for _BLOCKVOLUME:

Data Fields

NUTDEVICEvol_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_tvol_blk_buf
 Internal block buffer.

Detailed Description

Block volume information structure.

Definition at line 64 of file blockdev.c.


Field Documentation

Attached file system device.

Definition at line 67 of file blockdev.c.

Referenced by NutBlockDeviceClose(), and NutBlockDeviceOpen().

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().


The documentation for this struct was generated from the following file: