Different dev name in inode structure

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

 



Hi, I have a question about the inode structure. My
kernel version is 2.4.7-10, Red Hat Linux 7.2

In fs.h header file I found the prototype of inode
structure. In this inode structure there are the
following definitions.

kdev_t i_dev;
kdev_t i_rdev;
struct block_device * i_bdev;
struct char_device * i_cdev;

My question is what is the exact difference of i_dev
and i_rdev? Which one I should use?

Another question is what that i_bdev and i_cdev are
used for? They stand for what? 

Thanks

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
--
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