On Sat, 3 Jan 2009, Alexander Potashev wrote:

> Hello, Robert!
>
> On 10:12 Sat 03 Jan     , Robert P. J. Day wrote:
> >   the last i heard, while ioctl's aren't going away any time soon,
> > they're deprecated in favour of ... uh, files under /sys?  am i
>
> How is it possible to replace ioctls by files in /sys? Should my kernel
> module create a file in /sys and communicate with applications through
> read/write syscalls?

  that would be the standard way.  ioctl()s are just one of a number
of user<->kernel space communication mechanisms and, IIRC, ioctls are
now deprecated since they have no real structure to them.  having your
kernel code create and manipulate files under /sys is *allegedly* a
more structured way of doing things, but i'm willing to be corrected
if someone knows any better.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

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

Reply via email to