Configfs - an introduction
Posted Aug 25, 2005 9:42 UTC (Thu) by daniel
In reply to: Configfs - an introduction
Parent article: Configfs - an introduction
"The obvious way to deal with it is to recognise that ioctl is normally a library function"
Not it isn't, an ioctl goes straight through to the kernel without interpretation.
"and have glibc do the ConfigFS magic when ioctl is called"
What a perfectly horrible idea. Ioctls are lightweight, configfs is anything but. Configfs is for people. You can echo MySetting >/config/MySystem/frobme. For a program, it is a lot of pointless work opening the file, formatting the parameter, writing to it, closing it. An ioctl is one or two lines.
to post comments)