The function comedi_dio_get_config() querys the configuration of an individual channel in a digital I/O subdevice (see comedi_dio_config()). On success, the variable specified by the "direction" pointer will be set to either COMEDI_INPUT or COMEDI_OUTPUT.
If sucessful, 0 is returned, otherwise -1.