Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pktcdvd.c File Reference
#include <linux/pktcdvd.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/compat.h>
#include <linux/kthread.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <linux/file.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/miscdevice.h>
#include <linux/freezer.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi.h>
#include <linux/debugfs.h>
#include <linux/device.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define DRIVER_NAME   "pktcdvd"
 
#define DPRINTK(fmt, args...)
 
#define VPRINTK(fmt, args...)
 
#define MAX_SPEED   0xffff
 
#define ZONE(sector, pd)   (((sector) + (pd)->offset) & ~((pd)->settings.size - 1))
 
#define DEF_ATTR(_obj, _name, _mode)   static struct attribute _obj = { .name = _name, .mode = _mode }
 

Functions

 DEF_ATTR (kobj_pkt_attr_st1,"reset", 0200)
 
 DEF_ATTR (kobj_pkt_attr_st2,"packets_started", 0444)
 
 DEF_ATTR (kobj_pkt_attr_st3,"packets_finished", 0444)
 
 DEF_ATTR (kobj_pkt_attr_st4,"kb_written", 0444)
 
 DEF_ATTR (kobj_pkt_attr_st5,"kb_read", 0444)
 
 DEF_ATTR (kobj_pkt_attr_st6,"kb_read_gather", 0444)
 
 DEF_ATTR (kobj_pkt_attr_wq1,"size", 0444)
 
 DEF_ATTR (kobj_pkt_attr_wq2,"congestion_off", 0644)
 
 DEF_ATTR (kobj_pkt_attr_wq3,"congestion_on", 0644)
 
 MODULE_DESCRIPTION ("Packet writing layer for CD/DVD drives")
 
 MODULE_AUTHOR ("Jens Axboe <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_init (pkt_init)
 
 module_exit (pkt_exit)
 

Macro Definition Documentation

#define DEF_ATTR (   _obj,
  _name,
  _mode 
)    static struct attribute _obj = { .name = _name, .mode = _mode }

Definition at line 154 of file pktcdvd.c.

#define DPRINTK (   fmt,
  args... 
)

Definition at line 75 of file pktcdvd.c.

#define DRIVER_NAME   "pktcdvd"

Definition at line 70 of file pktcdvd.c.

#define MAX_SPEED   0xffff

Definition at line 84 of file pktcdvd.c.

#define VPRINTK (   fmt,
  args... 
)

Definition at line 81 of file pktcdvd.c.

#define ZONE (   sector,
  pd 
)    (((sector) + (pd)->offset) & ~((pd)->settings.size - 1))

Definition at line 86 of file pktcdvd.c.

Function Documentation

DEF_ATTR ( kobj_pkt_attr_st1  ,
"reset"  ,
0200   
)
DEF_ATTR ( kobj_pkt_attr_st2  ,
"packets_started"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_st3  ,
"packets_finished"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_st4  ,
"kb_written"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_st5  ,
"kb_read"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_st6  ,
"kb_read_gather"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_wq1  ,
"size"  ,
0444   
)
DEF_ATTR ( kobj_pkt_attr_wq2  ,
"congestion_off"  ,
0644   
)
DEF_ATTR ( kobj_pkt_attr_wq3  ,
"congestion_on"  ,
0644   
)
MODULE_AUTHOR ( "Jens Axboe <[email protected]>"  )
MODULE_DESCRIPTION ( "Packet writing layer for CD/DVD drives"  )
module_exit ( pkt_exit  )
module_init ( pkt_init  )
MODULE_LICENSE ( "GPL"  )