#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.
#define KMSG_COMPONENT "xpram" |
#define XPRAM_MAX_DEVS 32 /* maximal number of devices (partitions) */ |
#define XPRAM_NAME "xpram" |
module_exit |
( |
xpram_exit |
| ) |
|
module_init |
( |
xpram_init |
| ) |
|
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" |
|
|
) |
| |