Coding device driver for a minor device.
David Schleef
ds at schleef.org
Sun Apr 8 10:53:34 EST 2001
On Sat, Apr 07, 2001 at 12:42:19PM -0700, Karsten Jeppesen wrote:
>
> I have done modules.
>
> Now the problem is that I have 2 pushbuttons that I would like to read.
> Looking in the device list I see dev 10, which has a lot of - let us call it
> miscellaneous - content. This one seems to fit here. Maybe as a minor 185 or
> 186.
> But how do I locate the device driver for device major 10?
>
> I am certain there is a simple way - somebody knows it?
See linux/include/linux/miscdevice.h. And you should probably use
a minor in the range of 240-255, as those are reserved for local
use.
dave...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list