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

#include <ubi.h>

Data Fields

struct rb_node rb
 
int vol_id
 
int lnum
 
int users
 
struct rw_semaphore mutex
 

Detailed Description

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.

Definition at line 181 of file ubi.h.

Field Documentation

int lnum

Definition at line 184 of file ubi.h.

Definition at line 186 of file ubi.h.

Definition at line 182 of file ubi.h.

int users

Definition at line 185 of file ubi.h.

int vol_id

Definition at line 183 of file ubi.h.


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