All of lore.kernel.org
 help / color / mirror / Atom feed
* struct inode initialization
@ 2017-06-24 19:11 vish chopra
  2017-06-25  5:22 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: vish chopra @ 2017-06-24 19:11 UTC (permalink / raw)
  To: kernelnewbies

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.

Regards,
Vishal Chopra
+91-7837583269

^ permalink raw reply	[flat|nested] 2+ messages in thread

* struct inode initialization
  2017-06-24 19:11 struct inode initialization vish chopra
@ 2017-06-25  5:22 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2017-06-25  5:22 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-25  5:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-24 19:11 struct inode initialization vish chopra
2017-06-25  5:22 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.