Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 603 → Rev 604

/shark/trunk/drivers/linuxc26/videodev.c
404,7 → 404,26
return 0;
}
 
extern int bttv_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg);
 
int videodev_ioctl_inode(int num,unsigned int cmd,unsigned long arg) {
 
struct inode *i;
int res;
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL);
linuxcomp_setfd(i,num);
res = bttv_ioctl(i,NULL,cmd,arg);
kfree(i);
return res;
}
module_init(videodev_init)
module_exit(videodev_exit)