ENUM COMEDI_SUBDEVICE_TYPE(9)
β¨ enum comedi_subdevice_type(9) β¨
okay so bestie, imagine you're reading the Kernel API Manual and you stumble onto this one β it's literally just the master list of what kind of thing a COMEDI subdevice can be π. That's it, that's the whole vibe. Every subdevice in the COMEDI world picks one of these little labels for itself, and this enum is the label maker. slay π
πΈ NAME πΈ
enum comedi_subdevice_type β COMEDI subdevice types. yep, that's the whole name, no cap β¨
π¦ SYNOPSIS π¦
enum comedi_subdevice_type {
COMEDI_SUBD_UNUSED ,
COMEDI_SUBD_AI ,
COMEDI_SUBD_AO ,
COMEDI_SUBD_DI ,
COMEDI_SUBD_DO ,
COMEDI_SUBD_DIO ,
COMEDI_SUBD_COUNTER ,
COMEDI_SUBD_TIMER ,
COMEDI_SUBD_MEMORY ,
COMEDI_SUBD_CALIB ,
COMEDI_SUBD_PROC ,
COMEDI_SUBD_SERIAL ,
COMEDI_SUBD_PWM
};
π DESCRIPTION π
so the description here is literally split into constants, and honestly? each one is a whole little personality π. here's the full roster, no skips, no shortcuts:
π§ Constants
COMEDI_SUBD_UNUSEDβ unused subdevice. it's giving "empty seat at the lunch table" π«ΆCOMEDI_SUBD_AIβ analog input.COMEDI_SUBD_AOβ analog output.COMEDI_SUBD_DIβ digital input.COMEDI_SUBD_DOβ digital output.COMEDI_SUBD_DIOβ digital input/output. both directions, main character energy β¨COMEDI_SUBD_COUNTERβ counter.COMEDI_SUBD_TIMERβ timer. β°COMEDI_SUBD_MEMORYβ memory, EEPROM, DPRAM.COMEDI_SUBD_CALIBβ calibration DACs.COMEDI_SUBD_PROCβ processor, DSP.COMEDI_SUBD_SERIALβ serial I/O.COMEDI_SUBD_PWMβ Pulse-Width Modulation output. iconic π
that's all thirteen, counted them twice, we don't leave anyone out here π
π₯ SEE ALSO π₯
kernel file ./include/uapi/linux/comedi.h, and honestly the whole friend group shows up:
enum comedi_io_direction(9)enum configuration_ids(9)enum comedi_digital_trig_op(9)enum comedi_support_level(9)enum comedi_counter_status_flags(9)struct comedi_insn(9)struct comedi_insnlist(9)struct comedi_cmd(9)struct comedi_chaninfo(9)struct comedi_rangeinfo(9)struct comedi_krange(9)struct comedi_subdinfo(9)struct comedi_devinfo(9)struct comedi_devconfig(9)struct comedi_bufconfig(9)struct comedi_bufinfo(9)
like, the entire extended cast π go read them all, iykyk π
π and that's the page!! π this little love letter lives in ./include/uapi/linux and the manual's dated October 2026 β bye bestie, go label some subdevices π¦β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms