Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ubi_device_info Struct Reference

#include <ubi.h>

Data Fields

int ubi_num
 
int leb_size
 
int leb_start
 
int min_io_size
 
int max_write_size
 
int ro_mode
 
dev_t cdev
 

Detailed Description

struct ubi_device_info - UBI device description data structure. : ubi device number : logical eraseblock size on this UBI device : starting offset of logical eraseblocks within physical eraseblocks : minimal I/O unit size : maximum amount of bytes the underlying flash can write at a time (MTD write buffer size) : if this device is in read-only mode : UBI character device major and minor numbers

Note, is the logical eraseblock size offered by the UBI device. Volumes of this UBI device may have smaller logical eraseblock size if their alignment is not equivalent to %1.

The field describes flash write maximum write unit. For example, NOR flash allows for changing individual bytes, so is %1. However, it does not mean than NOR flash has to write data byte-by-byte. Instead, CFI NOR flashes have a write-buffer of, e.g., 64 bytes, and when writing large chunks of data, they write 64-bytes at a time. Obviously, this improves write throughput.

Also, the MTD device may have N interleaved (striped) flash chips underneath, in which case can be physical min. I/O size of single flash chip, while can be N * .

The field is always greater or equivalent to . E.g., some NOR flashes may have ( = 1, = 64). In contrast, NAND flashes usually have = = NAND page size.

Definition at line 150 of file ubi.h.

Field Documentation

Definition at line 157 of file ubi.h.

int leb_size

Definition at line 152 of file ubi.h.

int leb_start

Definition at line 153 of file ubi.h.

int max_write_size

Definition at line 155 of file ubi.h.

int min_io_size

Definition at line 154 of file ubi.h.

int ro_mode

Definition at line 156 of file ubi.h.

int ubi_num

Definition at line 151 of file ubi.h.


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