Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dcssblk.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/slab.h>
#include <linux/blkdev.h>
#include <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <asm/extmem.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  dcssblk_dev_info
 
struct  segment_info
 

Macros

#define KMSG_COMPONENT   "dcssblk"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define DCSSBLK_NAME   "dcssblk"
 
#define DCSSBLK_MINORS_PER_DISK   1
 
#define DCSSBLK_PARM_LEN   400
 
#define DCSS_BUS_ID_SIZE   20
 

Functions

 module_init (dcssblk_init)
 
 module_exit (dcssblk_exit)
 
 module_param_string (segments, dcssblk_segments, DCSSBLK_PARM_LEN, 0444)
 
 MODULE_PARM_DESC (segments,"Name of DCSS segment(s) to be loaded, ""comma-separated list, names in each set separated ""by commas are separated by colons, each set contains ""names of contiguous segments and each name max. 8 chars.\n""Adding \"(local)\" to the end of each set equals echoing 0 ""to /sys/devices/dcssblk/<device name>/shared after loading ""the contiguous segments - \n""e.g. segments=\"mydcss1,mydcss2:mydcss3,mydcss4(local)\"")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct dcssblk_dev_info __attribute__
 

Macro Definition Documentation

#define DCSS_BUS_ID_SIZE   20

Definition at line 26 of file dcssblk.c.

#define DCSSBLK_MINORS_PER_DISK   1

Definition at line 24 of file dcssblk.c.

#define DCSSBLK_NAME   "dcssblk"

Definition at line 23 of file dcssblk.c.

#define DCSSBLK_PARM_LEN   400

Definition at line 25 of file dcssblk.c.

#define KMSG_COMPONENT   "dcssblk"

Definition at line 7 of file dcssblk.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 8 of file dcssblk.c.

Function Documentation

module_exit ( dcssblk_exit  )
module_init ( dcssblk_init  )
MODULE_LICENSE ( "GPL"  )
module_param_string ( segments  ,
dcssblk_segments  ,
DCSSBLK_PARM_LEN  ,
0444   
)
MODULE_PARM_DESC ( segments  ,
"Name of DCSS segment(s) to be  loaded,
""comma-separated  list,
names in each set separated""by commas are separated by  colons,
each set contains""names of contiguous segments and each name max.8 chars.\n""Adding\"(local)\" to the end of each set equals echoing 0 ""to /sys/devices/dcssblk/<device name>/shared after loading ""the contiguous segments - \n""e.g.  segments = \"mydcss1,mydcss2:mydcss3,mydcss4(local)\"" 
)

Variable Documentation