enum comedi_oor_behavior comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior);
+int comedi_get_read_subdevice(comedi_t *dev);
+int comedi_get_write_subdevice(comedi_t *dev);
return -1;
}
+int comedi_get_read_subdevice(comedi_t *dev)
+{
+ if(!valid_dev(dev))
+ return -1;
+
+ return dev->devinfo.read_subdevice;
+}
+
+int comedi_get_write_subdevice(comedi_t *dev)
+{
+ if(!valid_dev(dev))
+ return -1;
+
+ return dev->devinfo.write_subdevice;
+}
int comedi_get_n_channels(comedi_t *it,unsigned int subd)
{