This source file includes following definitions.
- sd_ioctl
1 #include <linux/config.h>
2 #ifdef CONFIG_BLK_DEV_SD
3 #include <linux/kernel.h>
4 #include <linux/sched.h>
5 #include <linux/fs.h>
6 #include "scsi.h"
7 #include "sd.h"
8
9 extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
10
11 int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg)
12 {
13 int dev = inode->i_rdev;
14
15 switch (cmd) {
16 default:
17 return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device, cmd, (void *) arg);
18 }
19 }
20 #endif