1148,7 → 1148,7 |
#endif /* !sparc32 */ |
} |
|
static int |
int |
fb_open(struct inode *inode, struct file *file) |
{ |
int fbidx = iminor(inode); |
1173,7 → 1173,7 |
return res; |
} |
|
static int |
int |
fb_release(struct inode *inode, struct file *file) |
{ |
int fbidx = iminor(inode); |
1318,24 → 1318,7 |
|
/* Shark Inode emulation */ |
int fb_open_inode(int num) { |
|
struct inode *i; |
|
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL); |
|
linuxcomp_setfd(i,num); |
|
fb_open(i,NULL); |
|
kfree(i); |
|
return 0; |
|
} |
|
/* Shark Inode emulation */ |
int fb_close_inode(int num) { |
|
struct inode *i; |
|
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL); |
1342,14 → 1325,13 |
|
linuxcomp_setfd(i,num); |
|
fb_release(i,NULL); |
fb_open(i,NULL); |
|
kfree(i); |
|
return 0; |
|
} |
|
|
/** |
* video_setup - process command line options |
* @options: string of options |