Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pcihp_skeleton.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/pci_hotplug.h>
#include <linux/init.h>

Go to the source code of this file.

Data Structures

struct  slot
 

Macros

#define SLOT_NAME_SIZE   10
 
#define MY_NAME   "pcihp_skeleton"
 
#define dbg(format, arg...)
 
#define err(format, arg...)   printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
 
#define info(format, arg...)   printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
 
#define warn(format, arg...)   printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
 
#define DRIVER_VERSION   "0.3"
 
#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>"
 
#define DRIVER_DESC   "Hot Plug PCI Controller Skeleton Driver"
 

Functions

 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, bool, 0644)
 
 MODULE_PARM_DESC (debug,"Debugging mode enabled or not")
 
 module_init (pcihp_skel_init)
 
 module_exit (pcihp_skel_exit)
 

Macro Definition Documentation

#define dbg (   format,
  arg... 
)
Value:
do { \
if (debug) \
printk (KERN_DEBUG "%s: " format "\n", \
MY_NAME , ## arg); \
} while (0)

Definition at line 51 of file pcihp_skeleton.c.

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]>"

Definition at line 66 of file pcihp_skeleton.c.

#define DRIVER_DESC   "Hot Plug PCI Controller Skeleton Driver"

Definition at line 67 of file pcihp_skeleton.c.

#define DRIVER_VERSION   "0.3"

Definition at line 65 of file pcihp_skeleton.c.

#define err (   format,
  arg... 
)    printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)

Definition at line 57 of file pcihp_skeleton.c.

#define info (   format,
  arg... 
)    printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)

Definition at line 58 of file pcihp_skeleton.c.

#define MY_NAME   "pcihp_skeleton"

Definition at line 49 of file pcihp_skeleton.c.

#define SLOT_NAME_SIZE   10

Definition at line 39 of file pcihp_skeleton.c.

#define warn (   format,
  arg... 
)    printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)

Definition at line 59 of file pcihp_skeleton.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( pcihp_skel_exit  )
module_init ( pcihp_skel_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Debugging mode enabled or not"   
)