Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xpram.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/hdreg.h>
#include <linux/device.h>
#include <linux/bio.h>
#include <linux/suspend.h>
#include <linux/platform_device.h>
#include <linux/gfp.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  xpram_device_t
 

Macros

#define KMSG_COMPONENT   "xpram"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define XPRAM_NAME   "xpram"
 
#define XPRAM_DEVS   1 /* one partition */
 
#define XPRAM_MAX_DEVS   32 /* maximal number of devices (partitions) */
 

Functions

 module_param (devs, int, 0)
 
 module_param_array (sizes, charp, NULL, 0)
 
 MODULE_PARM_DESC (devs,"number of devices (\"partitions\"), ""the default is "__MODULE_STRING(XPRAM_DEVS)"\n")
 
 MODULE_PARM_DESC (sizes,"list of device (partition) sizes ""the defaults are 0s \n""All devices with size 0 equally partition the ""remaining space on the expanded strorage not ""claimed by explicit sizes\n")
 
 MODULE_LICENSE ("GPL")
 
 module_init (xpram_init)
 
 module_exit (xpram_exit)
 

Macro Definition Documentation

#define KMSG_COMPONENT   "xpram"

Definition at line 28 of file xpram.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 29 of file xpram.c.

#define XPRAM_DEVS   1 /* one partition */

Definition at line 47 of file xpram.c.

#define XPRAM_MAX_DEVS   32 /* maximal number of devices (partitions) */

Definition at line 48 of file xpram.c.

#define XPRAM_NAME   "xpram"

Definition at line 46 of file xpram.c.

Function Documentation

module_exit ( xpram_exit  )
module_init ( xpram_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( devs  ,
int  ,
 
)
module_param_array ( sizes  ,
charp  ,
NULL  ,
 
)
MODULE_PARM_DESC ( devs  ,
"number of devices   \"partitions\",
""the default is"__MODULE_STRING(XPRAM_DEVS)"\n"   
)
MODULE_PARM_DESC ( sizes  ,
"list of device (partition) sizes ""the defaults are 0s \n""All devices with size 0 equally partition the ""remaining space on the expanded strorage not ""claimed by explicit sizes\n"   
)