Esempio n. 1
0
long dvb_generic_ioctl(struct file *file,
		       unsigned int cmd, unsigned long arg)
{
	struct dvb_device *dvbdev = file->private_data;

	if (!dvbdev)
		return -ENODEV;

	if (!dvbdev->kernel_ioctl)
		return -EINVAL;

	return dvb_usercopy(file, cmd, arg, dvbdev->kernel_ioctl);
}
Esempio n. 2
0
static long ns_ioctl(struct file *file,
		     unsigned int cmd, unsigned long arg)
{
	return dvb_usercopy(file, cmd, arg, do_ioctl);
}
Esempio n. 3
0
File: dmxdev.c Progetto: 274914765/C
static int dvb_demux_ioctl(struct inode *inode, struct file *file,
               unsigned int cmd, unsigned long arg)
{
    return dvb_usercopy(inode, file, cmd, arg, dvb_demux_do_ioctl);
}