of a fix for:
BUG in do_test_for_insn_bits()
: Device or resource busy
when a program opens a device file
and one of the subdevices is busy when it
is opened.
if (s->do_cmd)
us->subd_flags |= SDF_CMD;
+ if (s->insn_bits)
+ us->insn_bits_support = COMEDI_SUPPORTED;
+ else
+ us->insn_bits_support = COMEDI_UNSUPPORTED;
+
us->settling_time_0 = s->settling_time_0;
}
COMEDI_OPENDRAIN = 2
};
+ enum comedi_support_level
+ {
+ COMEDI_UNKNOWN_SUPPORT = 0,
+ COMEDI_SUPPORTED,
+ COMEDI_UNSUPPORTED
+ };
+
/* ioctls */
#define CIO 'd'
unsigned int flags;
};
+
struct comedi_subdinfo_struct {
unsigned int type;
unsigned int n_chan;
unsigned int flags; /* channel flags */
unsigned int range_type; /* lookup in kernel */
unsigned int settling_time_0;
- unsigned int unused[9];
+ unsigned insn_bits_support; /* see support_level enum for values*/
+ unsigned int unused[8];
};
struct comedi_devinfo_struct {