Not easily. Also, you need all the IOCTL constants somewhere, and those are highly system specific.
It's probably easier to simply implement interfaces as they are needed. As an example, adding a soundcard interface that handles several different output methods (ALSA (spdif and not), Solaris /dev/audio, esd etc) directly.
/ Per Hedbor ()
Previous text:
2004-08-17 08:58: Subject: managing comport settings in linux
I had kind of the same problem about 1½ ago. I needed to interface with my soundcard and thus needed ioctl. However, there was some argument against adding a general ioctl call, but I'm not sure what it was. I ended up using a tiny cmod for the purpose of setting my parameter.
It might be that there is no real way of knowing what parameters are passed and how they should be interperted on the C-level. But that could be fixed using some smart heuristics, IMHO.
/ Marcus Agehall (PacketFront)