The struct inode corresponding to the file being opened. In your case, /dev/trial2.int major; static int char_open( struct inode *inode, /*What Inode is this ?*/
The struct file corresponding to the file descriptor given to you whn you called open() on this device file.struct file * file /*What File is this ? */
) {
thanks rahul -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/