Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 469 → Rev 470

/shark/trunk/drivers/fb/fbmem.c
1148,7 → 1148,7
#endif /* !sparc32 */
}
 
int
static int
fb_open(struct inode *inode, struct file *file)
{
int fbidx = iminor(inode);
1173,7 → 1173,7
return res;
}
 
int
static int
fb_release(struct inode *inode, struct file *file)
{
int fbidx = iminor(inode);
1318,7 → 1318,24
 
/* 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);
1325,13 → 1342,14
 
linuxcomp_setfd(i,num);
 
fb_open(i,NULL);
fb_release(i,NULL);
 
kfree(i);
 
return 0;
 
}
 
 
/**
* video_setup - process command line options
* @options: string of options