struct ubi_device - UBI device description structure : UBI device object to use the the Linux device model : character device object to create character device : UBI device number : UBI device name : number of volumes in this UBI device : volumes of this UBI device : protects , , , beb_rsvd_pebs, , , , , ->readers, ->writers, ->exclusive, ->ref_count, ->mapping and ->eba_tbl. : count of references on the UBI device : image sequence number recorded on EC headers
: count of reserved physical eraseblocks : count of available physical eraseblocks : how many physical eraseblocks are reserved for bad PEB handling : normal level of PEBs reserved for bad PEB handling
: ID of the volume which has to be auto-resized at the end of UBI initialization : how many slots are available in the volume table : size of the volume table in bytes : in-RAM volume table copy : protects on-flash volume table and serializes volume creation, deletion, update, re-size, re-name and set property
: current highest erase counter value : current mean erase counter value
: global sequence number : protects the lock tree and : the lock tree : serializes "atomic LEB change" operations
: non-zero if fastmap is disabled (default) : in-memory data structure of the currently used fastmap : in-memory data structure of the fastmap pool : in-memory data structure of the fastmap pool used by the WL sub-system : serializes ubi_update_fastmap() and protects : vmalloc()'d buffer which holds the raw fastmap : fastmap size in bytes : allows ubi_update_fastmap() to block EBA table changes : fastmap work queue
: RB-tree of used physical eraseblocks : RB-tree of erroneous used physical eraseblocks : RB-tree of free physical eraseblocks : Contains the number of elements in : RB-tree of physical eraseblocks which need scrubbing : protection queue (contain physical eraseblocks which are temporarily protected from the wear-leveling worker) : protection queue head : protects the , , , , , , , , , , , and fields : serializes eraseblock moves : synchronizes the WL worker with use tasks : non-zero if the wear-leveling was scheduled : a table to quickly find a &struct ubi_wl_entry object for any physical eraseblock : physical eraseblock from where the data is being moved : physical eraseblock where the data is being moved to : if the "to" PEB was put : list of pending works : count of pending works : background thread description object : if the background thread is enabled : background thread name
: underlying MTD device size (in bytes) : count of physical eraseblocks on the MTD device : physical eraseblock size : top limit of expected bad physical eraseblocks : count of bad physical eraseblocks : count of good physical eraseblocks : count of corrupted physical eraseblocks (preserved and not used by UBI) : count of erroneous physical eraseblocks in : maximum allowed amount of erroneous physical eraseblocks : minimal input/output unit size of the underlying MTD device : minimal I/O unit size used for VID and EC headers : if the UBI device is in read-only mode : logical eraseblock size : starting offset of logical eraseblocks within physical eraseblocks : size of the EC header aligned to : size of the VID header aligned to : starting offset of the volume identifier header (might be unaligned) : starting offset of the VID header aligned to : contains - : whether the MTD device admits of bad physical eraseblocks or not : non-zero if working on top of NOR flash : maximum amount of bytes the underlying flash can write at a time (MTD write buffer size) : MTD device descriptor
: a buffer of PEB size used for different purposes : protects : serializes static volume checking when opening
: debugging information for this UBI device
Definition at line 454 of file ubi.h.