| title: | Re Writing a device driver |
|
On Mon, Mar 27, 2006 at 10:51:50AM +0200, Bart Jonkers wrote:
On Fri, 2006-03-24 at 10:02 -0800, tmike@xxxxxxxxxxxxxxxxx wrote:
Quoting Bart Jonkers <jonkersbart@xxxxxxxxx :
Have you looked at .../kernel/sysctl.c ?
I added a simple entry to read/write 1 integer
and found everything I needed in this file.
Cheers,
What you mention is the the /proc/sys interface which is part of the
/proc interface. I want to use the sysfs interface (/sys) which is
the preferred way (if I understood it right). It is part of the new
driver model.
Can anybody help me with it?
I think you want to read "Linux Device Drivers", 3rd edition. Available
in dead tree format at your local bookstore, or online for free at
rel="nofollow" lwn.net/Kernel/LDD3/ lwn.net/Kernel/LDD3/ .
Another question:
What is the difference between the structure device and platform_device?
Which should I use?
Another great link is LWNs "Driver Porting" series at
rel="nofollow" lwn.net/Articles/driver-porting/ lwn.net/Articles/driver-porting/ . It has an article about
device classes which should explain the difference.
Erik
--
---- Erik Mouw ---- www.bitwizard.nl ---- +31 15 2600 998 ----
-------------------------------------------------------------------
List admin: rel="nofollow" lists.arm.linux.org.uk/mailman/listinfo/linux-arm lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: rel="nofollow" www.arm.linux.org.uk/mailinglists/faq.php www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: rel="nofollow" www.arm.linux.org.uk/mailinglists/etiquette.php www.arm.linux.org.uk/mailinglists/etiquette.php
|