Re: usage count

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

 






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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux