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

#include <ubi.h>

Data Fields

struct list_head list
 
int(* func )(struct ubi_device *ubi, struct ubi_work *wrk, int cancel)
 
struct ubi_wl_entrye
 
int vol_id
 
int lnum
 
int torture
 
int anchor
 

Detailed Description

struct ubi_work - UBI work description data structure. : a link in the list of pending works : worker function : physical eraseblock to erase : the volume ID on which this erasure is being performed : the logical eraseblock number : if the physical eraseblock has to be tortured a anchor PEB to by used by fastmap

The pointer points to the worker function. If the argument is not zero, the worker has to free the resources and exit immediately. The worker has to return zero in case of success and a negative error code in case of failure.

Definition at line 684 of file ubi.h.

Field Documentation

int anchor

Definition at line 692 of file ubi.h.

Definition at line 688 of file ubi.h.

int(* func)(struct ubi_device *ubi, struct ubi_work *wrk, int cancel)

Definition at line 686 of file ubi.h.

Definition at line 685 of file ubi.h.

int lnum

Definition at line 690 of file ubi.h.

int torture

Definition at line 691 of file ubi.h.

int vol_id

Definition at line 689 of file ubi.h.


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