[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: usage count






int major;


static int
char_open(
struct inode *inode, /*What Inode is this ?*/


The struct inode corresponding to the file being opened. In your case, /dev/trial2.

struct file * file /*What File is this ? */


The struct file corresponding to the file descriptor given to you whn you called open() on this device file.

) {


thanks
rahul


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/