Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 615 → Rev 616

/shark/trunk/drivers/linuxc26/videodev.c
389,8 → 389,9
void *file = NULL;
 
int bttv_open(struct inode *inode, struct file *file);
/* Shark Inode emulation */
int bttv_release(struct inode *inode, struct file *file);
/* Shark Inode emulation - Open */
int videodev_open_inode(int num) {
struct inode *i;
410,6 → 411,26
}
 
/* Shark Inode emulation - Close */
int videodev_close_inode(int num) {
struct inode *i;
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL);
linuxcomp_setfd(i,num);
if (bttv_release(i,file)) {
kfree(i);
return -1;
}
kfree(file);
kfree(i);
return 0;
}
 
extern int bttv_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg);
 
428,6 → 449,8
return res;
}
 
 
module_init(videodev_init)
module_exit(videodev_exit)