#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/major.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
#include <linux/highmem.h>
#include <linux/mutex.h>
#include <linux/radix-tree.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
Go to the source code of this file.
|
| module_param (rd_nr, int, S_IRUGO) |
|
| MODULE_PARM_DESC (rd_nr,"Maximum number of brd devices") |
|
| module_param (rd_size, int, S_IRUGO) |
|
| MODULE_PARM_DESC (rd_size,"Size of each RAM disk in kbytes.") |
|
| module_param (max_part, int, S_IRUGO) |
|
| MODULE_PARM_DESC (max_part,"Maximum number of partitions per RAM disk") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_BLOCKDEV_MAJOR (RAMDISK_MAJOR) |
|
| MODULE_ALIAS ("rd") |
|
| __setup ("ramdisk_size=", ramdisk_size) |
|
| module_init (brd_init) |
|
| module_exit (brd_exit) |
|
Definition at line 27 of file brd.c.
Definition at line 26 of file brd.c.
Definition at line 25 of file brd.c.
MODULE_PARM_DESC |
( |
rd_size |
, |
|
|
"Size of each RAM disk in kbytes." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
max_part |
, |
|
|
"Maximum number of partitions per RAM disk" |
|
|
) |
| |
int rd_size = CONFIG_BLK_DEV_RAM_SIZE |