#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.
|
| 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) |
|
#define DPRINTK |
( |
|
fmt, |
|
|
|
args... |
|
) |
| |
#define DRIVER_NAME "pktcdvd" |
#define VPRINTK |
( |
|
fmt, |
|
|
|
args... |
|
) |
| |
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" |
| ) |
|