Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mtdconcat.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/backing-dev.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/concat.h>
#include <asm/div64.h>

Go to the source code of this file.

Data Structures

struct  mtd_concat
 

Macros

#define SIZEOF_STRUCT_MTD_CONCAT(num_subdev)   ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *)))
 
#define CONCAT(x)   ((struct mtd_concat *)(x))
 

Functions

struct mtd_infomtd_concat_create (struct mtd_info *subdev[], int num_devs, const char *name)
 
void mtd_concat_destroy (struct mtd_info *mtd)
 
 EXPORT_SYMBOL (mtd_concat_create)
 
 EXPORT_SYMBOL (mtd_concat_destroy)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Robert Kaiser <[email protected]>")
 
 MODULE_DESCRIPTION ("Generic support for concatenating of MTD devices")
 

Macro Definition Documentation

#define CONCAT (   x)    ((struct mtd_concat *)(x))

Definition at line 60 of file mtdconcat.c.

#define SIZEOF_STRUCT_MTD_CONCAT (   num_subdev)    ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *)))

Definition at line 53 of file mtdconcat.c.

Function Documentation

EXPORT_SYMBOL ( mtd_concat_create  )
EXPORT_SYMBOL ( mtd_concat_destroy  )
MODULE_AUTHOR ( "Robert Kaiser <[email protected]>"  )
MODULE_DESCRIPTION ( "Generic support for concatenating of MTD devices )
MODULE_LICENSE ( "GPL"  )
struct mtd_info* mtd_concat_create ( struct mtd_info subdev[],
int  num_devs,
const char name 
)
read

Definition at line 677 of file mtdconcat.c.

void mtd_concat_destroy ( struct mtd_info mtd)

Definition at line 938 of file mtdconcat.c.