[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Device drivers documentation
Hello!
> I was wondering is there is any documentation about using the device drivers
> (especially ioctl calls). It is a bit hard to look in the source to know how to
> use a device driver. Not everybody knows how a driver like 'console' or 'mouse'
> must be used.
Simply open the corresponding device that is available under /dev. All
normal file I/O calls work (read/write). It depend highly on the type of
the device. For controlling special things you can do ioctl(). These
ioctl() depend on the type of the device too.
On tty devices there are a lot of ioctl() that are well documented.
FIONREAD/FIONWRITE are always available.
On which device do you are interested?
Tschuess
...Frank
--
ATARI FALCON 040 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de