logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_fileno - get file descriptor for open Comedilib device

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

Description

       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.

Name

       comedi_fileno - get file descriptor for open Comedilib device

Return Value

       A file descriptor, or -1 on error.

Synopsis

#include<comedilib.h>intcomedi_fileno(comedi_t*device);

See Also