Linux Kernel
3.7.1
|
#include <ubi.h>
Data Fields | |
struct list_head | list |
int(* | func )(struct ubi_device *ubi, struct ubi_work *wrk, int cancel) |
struct ubi_wl_entry * | e |
int | vol_id |
int | lnum |
int | torture |
int | anchor |
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.