|
Linux Kernel
3.7.1
|
#include <ubi.h>
Data Fields | |
| struct rb_node | rb |
| int | vol_id |
| int | lnum |
| int | users |
| struct rw_semaphore | mutex |
struct ubi_ltree_entry - an entry in the lock tree. : links RB-tree nodes : volume ID of the locked logical eraseblock : locked logical eraseblock number : how many tasks are using this logical eraseblock or wait for it : read/write mutex to implement read/write access serialization to the (, ) logical eraseblock
This data structure is used in the EBA sub-system to implement per-LEB locking. When a logical eraseblock is being locked - corresponding &struct ubi_ltree_entry object is inserted to the lock tree (->ltree). See EBA sub-system for details.
1.8.2