Re: devfs_mk_cdev question

2004-12-07 Thread Antonio Rodriguez
On Tue, Dec 07, 2004 at 10:13:23AM -0800, Greg KH wrote: > On Tue, Dec 07, 2004 at 06:57:41PM +0100, Paul Akkermans wrote: > > Where can I find this documentation? > > A: No. > Q: Should I include quotations after my reply? > The one above is a good piece to show the inconvenience of top postin

Re: devfs_mk_cdev question

2004-12-07 Thread Greg KH
On Tue, Dec 07, 2004 at 06:57:41PM +0100, Paul Akkermans wrote: > Where can I find this documentation? A: No. Q: Should I include quotations after my reply? Look in the kernel source tree, that is your best location to figure out what the code is doing, and to read any documentation that is prese

Re: devfs_mk_cdev question

2004-12-07 Thread Greg KH
On Tue, Dec 07, 2004 at 05:34:16PM +0100, Paul Akkermans wrote: > Can you also tell me what "class_simple_device_add() " does then? To quote the documentation (why do I write it if no one even reads it...): /** * class_simple_device_add - adds a class device to sysfs for a character driver * @c

Re: devfs_mk_cdev question

2004-12-07 Thread Paul Akkermans
Where can I find this documentation? - Original Message - From: "Greg KH" <[EMAIL PROTECTED]> To: "Paul Akkermans" <[EMAIL PROTECTED]> Cc: "kernel newbie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 6:1

Re: devfs_mk_cdev question

2004-12-07 Thread Paul Akkermans
t;[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 4:47 PM Subject: Re: devfs_mk_cdev question On Tue, Dec 07, 2004 at 03:16:48PM +0100, Paul Akkermans wrote: Hi group, Can anybody tell me what happens in this piece of code: mousedev_table[minor] = mousedev; devfs_mk_cdev(MKDEV(INPUT_MAJOR,

Re: devfs_mk_cdev question

2004-12-07 Thread Greg KH
On Tue, Dec 07, 2004 at 03:16:48PM +0100, Paul Akkermans wrote: > Hi group, > > Can anybody tell me what happens in this piece of code: > > mousedev_table[minor] = mousedev; > > devfs_mk_cdev(MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor), >S_IFCHR|S_IRUGO|S_IWUSR, "input/mouse%d", minor);

devfs_mk_cdev question

2004-12-07 Thread Paul Akkermans
Hi group,   Can anybody tell me what happens in this piece of code:   mousedev_table[minor] = mousedev;    devfs_mk_cdev(MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),   S_IFCHR|S_IRUGO|S_IWUSR, "input/mouse%d", minor); class_simple_device_add(input_class,MKDEV(INPUT_MAJOR, MOUSEDEV_M