On Sun, Jul 31, 2005 at 05:31:11PM +0300, Shachar Shemesh wrote:

> and a device+ioctl?

deprecated, except in very specific case (only one I can recall in
recent memory is the Cell's SPE interface, and that one is not yet
decided).

> /sys?

Setting and reading device configuration and attributes. Very little
data transfer.

> /proc?

unholy mess. Add nothing new here.

There are other options as well

- the kevent/uevent mechanism, which works over netlink IIRC

- adding your own file system, which is actually the preferred
solution in many cases. A private case of that is debugfs.

- adding a syscall - think of this as the structured equivalent of a
device specific ioctl, for something that is *not* device specific.

There are no hard and fast rules about which method to use - it's all
a matter of taste, and a favorite subject for endless flamewars. If in
doubt, ask... 

Cheers,
Muli
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to