Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nftl.h File Reference
#include <linux/mtd/mtd.h>
#include <linux/mtd/blktrans.h>
#include <mtd/nftl-user.h>

Go to the source code of this file.

Data Structures

struct  NFTLrecord
 

Macros

#define BLOCK_NIL   0xffff /* last block of a chain */
 
#define BLOCK_FREE   0xfffe /* free block */
 
#define BLOCK_NOTEXPLORED   0xfffd /* non explored block, only used during mounting */
 
#define BLOCK_RESERVED   0xfffc /* bios block or bad block */
 
#define NFTL_MAJOR   93
 
#define MAX_NFTLS   16
 
#define MAX_SECTORS_PER_UNIT   64
 
#define NFTL_PARTN_BITS   4
 

Functions

int NFTL_mount (struct NFTLrecord *s)
 
int NFTL_formatblock (struct NFTLrecord *s, int block)
 
int nftl_read_oob (struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf)
 
int nftl_write_oob (struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf)
 

Macro Definition Documentation

#define BLOCK_FREE   0xfffe /* free block */

Definition at line 30 of file nftl.h.

#define BLOCK_NIL   0xffff /* last block of a chain */

Definition at line 29 of file nftl.h.

#define BLOCK_NOTEXPLORED   0xfffd /* non explored block, only used during mounting */

Definition at line 31 of file nftl.h.

#define BLOCK_RESERVED   0xfffc /* bios block or bad block */

Definition at line 32 of file nftl.h.

#define MAX_NFTLS   16

Definition at line 68 of file nftl.h.

#define MAX_SECTORS_PER_UNIT   64

Definition at line 69 of file nftl.h.

#define NFTL_MAJOR   93

Definition at line 65 of file nftl.h.

#define NFTL_PARTN_BITS   4

Definition at line 70 of file nftl.h.

Function Documentation

int NFTL_formatblock ( struct NFTLrecord s,
int  block 
)

Definition at line 303 of file nftlmount.c.

int NFTL_mount ( struct NFTLrecord s)

Definition at line 565 of file nftlmount.c.

int nftl_read_oob ( struct mtd_info mtd,
loff_t  offs,
size_t  len,
size_t retlen,
uint8_t buf 
)

Definition at line 136 of file nftlcore.c.

int nftl_write_oob ( struct mtd_info mtd,
loff_t  offs,
size_t  len,
size_t retlen,
uint8_t buf 
)

Definition at line 157 of file nftlcore.c.