Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tape_class.c File Reference
#include <linux/slab.h>
#include "tape_class.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "tape"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 

Functions

 MODULE_AUTHOR ("Stefan Bader <[email protected]>")
 
 MODULE_DESCRIPTION ("Copyright IBM Corp. 2004 All Rights Reserved.\n""tape_class.c")
 
 MODULE_LICENSE ("GPL")
 
struct tape_class_deviceregister_tape_dev (struct device *device, dev_t dev, const struct file_operations *fops, char *device_name, char *mode_name)
 
 EXPORT_SYMBOL (register_tape_dev)
 
void unregister_tape_dev (struct device *device, struct tape_class_device *tcd)
 
 EXPORT_SYMBOL (unregister_tape_dev)
 
 postcore_initcall (tape_init)
 
 module_exit (tape_exit)
 

Macro Definition Documentation

#define KMSG_COMPONENT   "tape"

Definition at line 10 of file tape_class.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 11 of file tape_class.c.

Function Documentation

EXPORT_SYMBOL ( register_tape_dev  )
EXPORT_SYMBOL ( unregister_tape_dev  )
MODULE_AUTHOR ( "Stefan Bader <[email protected]>"  )
MODULE_DESCRIPTION ( "Copyright IBM Corp. 2004 All Rights Reserved.\n""tape_class.c )
module_exit ( tape_exit  )
MODULE_LICENSE ( "GPL"  )
postcore_initcall ( tape_init  )
struct tape_class_device* register_tape_dev ( struct device device,
dev_t  dev,
const struct file_operations fops,
char device_name,
char mode_name 
)
read

Definition at line 41 of file tape_class.c.

void unregister_tape_dev ( struct device device,
struct tape_class_device tcd 
)

Definition at line 106 of file tape_class.c.