* Re: help about device driver
[not found] <55E19C299740714F83A6770B39E11B3515EB2828@MAILBOX03.internal.baidu.com>
@ 2011-12-22 3:51 ` Greg KH
0 siblings, 0 replies; only message in thread
From: Greg KH @ 2011-12-22 3:51 UTC (permalink / raw)
To: mengdeguo; +Cc: Linus Torvalds, linux-kernel
On Thu, Dec 22, 2011 at 10:55:49AM +0800, mengdeguo wrote:
> Hi,
>
>
>
> I find a problem very confusing. Devices are divided into char/block/network dev. By the definition i2c, usb ,input devices belong to char devices. But walk across all the device driver, I can not find the cdev struct for them (i2c ,usb ,input devices). What's the problem ? This devices don't need cdev, if so, what do we do to associate file_operations with dev node?
What device node is associated with a usb device?
cdev structures are only there for character device nodes, the majority
of drivers never use that at all, that's what the different "class"es
are for (input, tty, misc, etc.)
greg k-h
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-22 3:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <55E19C299740714F83A6770B39E11B3515EB2828@MAILBOX03.internal.baidu.com>
2011-12-22 3:51 ` help about device driver 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.