Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
partitions.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  mtd_partition
 
struct  mtd_part_parser_data
 
struct  mtd_part_parser
 

Macros

#define MTDPART_OFS_RETAIN   (-3)
 
#define MTDPART_OFS_NXTBLK   (-2)
 
#define MTDPART_OFS_APPEND   (-1)
 
#define MTDPART_SIZ_FULL   (0)
 

Functions

int register_mtd_parser (struct mtd_part_parser *parser)
 
int deregister_mtd_parser (struct mtd_part_parser *parser)
 
int mtd_is_partition (const struct mtd_info *mtd)
 
int mtd_add_partition (struct mtd_info *master, char *name, long long offset, long long length)
 
int mtd_del_partition (struct mtd_info *master, int partno)
 
uint64_t mtd_get_device_size (const struct mtd_info *mtd)
 

Macro Definition Documentation

#define MTDPART_OFS_APPEND   (-1)

Definition at line 49 of file partitions.h.

#define MTDPART_OFS_NXTBLK   (-2)

Definition at line 48 of file partitions.h.

#define MTDPART_OFS_RETAIN   (-3)

Definition at line 47 of file partitions.h.

#define MTDPART_SIZ_FULL   (0)

Definition at line 50 of file partitions.h.

Function Documentation

int deregister_mtd_parser ( struct mtd_part_parser parser)

Definition at line 684 of file mtdpart.c.

int mtd_add_partition ( struct mtd_info master,
char name,
long long  offset,
long long  length 
)

Definition at line 536 of file mtdpart.c.

int mtd_del_partition ( struct mtd_info master,
int  partno 
)

Definition at line 593 of file mtdpart.c.

uint64_t mtd_get_device_size ( const struct mtd_info mtd)

Definition at line 768 of file mtdpart.c.

int mtd_is_partition ( const struct mtd_info mtd)

Definition at line 750 of file mtdpart.c.

int register_mtd_parser ( struct mtd_part_parser parser)

Definition at line 674 of file mtdpart.c.