Re: ioctls vs. sysfs-attr

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

 



On Fri, Jan 16, 2004 at 11:00:07PM +0100, Frank A. Uepping wrote:
> >> Are ioctls deprecated in favor of sysfs-attributes?
> 
> >If possible, yes.
> 
> >greg k-h
> 
> An attribute is publically visible and its permissions control access
> to it on user level. Thus, a writable attribute makes only sense when
> it controls something that is common to its driver.
> 
> Do you agree with that statement?

What?  I don't understand that statement :)

Give me an example please.

Remember, attributes can be created for classes, class devices, devices,
drivers, and buses.  There are many different types of attributes, all
showing up in different places in the sysfs tree, and controlling
different things.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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