Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
fastmap.c File Reference
#include <linux/crc32.h>
#include "ubi.h"

Go to the source code of this file.

Functions

size_t ubi_calc_fm_size (struct ubi_device *ubi)
 
int ubi_scan_fastmap (struct ubi_device *ubi, struct ubi_attach_info *ai, int fm_anchor)
 
int ubi_update_fastmap (struct ubi_device *ubi)
 

Function Documentation

size_t ubi_calc_fm_size ( struct ubi_device ubi)

ubi_calc_fm_size - calculates the fastmap size in bytes for an UBI device. : UBI device description object

Definition at line 23 of file fastmap.c.

int ubi_scan_fastmap ( struct ubi_device ubi,
struct ubi_attach_info ai,
int  fm_anchor 
)

ubi_scan_fastmap - scan the fastmap. : UBI device object : UBI attach info to be filled : The fastmap starts at this PEB

Returns 0 on success, UBI_NO_FASTMAP if no fastmap was found, UBI_BAD_FASTMAP if one was found but is not usable. < 0 indicates an internal error.

Definition at line 850 of file fastmap.c.

int ubi_update_fastmap ( struct ubi_device ubi)

ubi_update_fastmap - will be called by UBI if a volume changes or a fastmap pool becomes full. : UBI device object

Returns 0 on success, < 0 indicates an internal error.

Definition at line 1376 of file fastmap.c.