Re: struct inode initialization

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

 



On Sun, Jun 25, 2017 at 12:41:47AM +0530, vish chopra wrote:
> Hi,
> 
> i'm working on character driver.Unable to find when inode structure is
> create and when inode->i_cdev is assigned.
> Unable to find relation between inode and cdev.

What exact relation are you looking for?  A character driver shouldn't
ever care about this, it should be very simple code.  Have you tried
using something like the misc interface instead, which handles almost
all of this logic for you?

Posting your code is a good way for others to help as well, otherwise
answering vague questions is very hard.

good luck!

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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