Re: platform device , uevent file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 10, 2009 at 11:52:58AM +0200, Daniel Baluta wrote:
> Led class seems to be a very good idea.

Good.

> The idea is that i want to dynamically create /dev/hexd in order to
> write to my hexdisplay.

But the led class uses sysfs, not a device node to interact with the
device.  No /dev/ node is needed at all.

>  I've noticed that for example , for printer class there is a file
> /sys/class/printer/lp0/dev that contains MAJOR:MINOR.

Yes, because it needs a device node, the led class does not.

Why do you want a /dev/ node?  Are you going to be creating new ioctls
for your device?  That is really not recommended at all.

thanks,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux