Re: Sample of quite well structured question (Fwd: How to create "dev" files in sysfs?)

2011-01-19 Thread Anuz Pratap Singh Tomar
- > From: Arvid Brodin > Date: Wed, Jan 19, 2011 at 20:23 > Subject: How to create "dev" files in sysfs? > To: kernelnewbies@kernelnewbies.org > > > Hello, > > How do I make my platform device a character device that > can be handled by udev? > > Ba

Sample of quite well structured question (Fwd: How to create "dev" files in sysfs?)

2011-01-19 Thread Mulyadi Santosa
Guys... I believe it's one of the sample of a question that is well structured. -- Forwarded message -- From: Arvid Brodin Date: Wed, Jan 19, 2011 at 20:23 Subject: How to create "dev" files in sysfs? To: kernelnewbies@kernelnewbies.org Hello, How do I m

Re: How to create "dev" files in sysfs?

2011-01-19 Thread Greg KH
On Wed, Jan 19, 2011 at 02:23:41PM +0100, Arvid Brodin wrote: > Hello, > > How do I make my platform device a character device that > can be handled by udev? Have you read the Linux Device Drivers book about this very topic? If not, I suggest you do so. > Background: > > I've written a driver

How to create "dev" files in sysfs?

2011-01-19 Thread Arvid Brodin
Hello, How do I make my platform device a character device that can be handled by udev? Background: I've written a driver for a very simple platform device (a jumper connected to an input pin on the processor). Today I can read the status of the pin through a driver attribute file in sysfs at: