The function comedi_fileno returns the file descriptor for the device device. This descriptor can then be used as the file descriptor parameter of read, write, etc. This function is intended to mimic the standard C library function fileno.
The returned file descriptor should not be closed, and will become invalid when comedi_close is called on device.
Return value
A file descriptor, or -1 on error.
Releases
12 releases since Debian 3.0 (Woody); the text changed 9 times.