|
|
1.1 ! root 1: #include <linux/config.h> ! 2: #ifdef CONFIG_BLK_DEV_ST ! 3: #include <linux/kernel.h> ! 4: #include <linux/sched.h> ! 5: #include <linux/fs.h> ! 6: #include "st.h" ! 7: ! 8: extern int scsi_ioctl(int dev, int cmd, void *arg); ! 9: ! 10: int st_ioctl(struct inode * inode,struct file * file, unsigned long cmd, unsigned long arg) ! 11: { ! 12: int dev = inode->i_rdev; ! 13: ! 14: switch (cmd) { ! 15: default: ! 16: return scsi_ioctl(scsi_tapes[MINOR(dev)].device,cmd,(void *) arg); ! 17: } ! 18: } ! 19: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.