STRUCT COMEDI_DEVINFO(9)
π struct comedi_devinfo(9) π
okay so bestie, welcome to the glow-up era of struct comedi_devinfo from the Kernel API Manual (yes, that's the manual name, we're keeping it cute). This little icon is literally the info card your COMEDI device hands over when you ask it to introduce itself. main character energy only. β¨
β¨ SYNOPSIS β¨
struct comedi_devinfo {
unsigned int version_code;
unsigned int n_subdevs;
char driver_name[COMEDI_NAMELEN];
char board_name[COMEDI_NAMELEN];
int read_subdevice;
int write_subdevice;
int unused[30];
};
like, look at her. no cap, that's the whole squad right there. π«Ά
π Members π
version_codeβ the COMEDI version code. it's giving "which era of COMEDI are we in" π¦n_subdevsβ how many subdevices the device has. count 'em, bestie. π₯driver_nameβ the null-terminated COMEDI driver name. yes, null-terminated, don't forget the terminator or it's gonna be a whole situation πboard_nameβ the null-terminated COMEDI board name. also null-terminated. we love consistency. πread_subdeviceβ index of the current "read" subdevice, and that's-1if there isn't one. the-1is lowkey doing the most but it's correct πwrite_subdeviceβ index of the current "write" subdevice, also-1if none. twins! πunusedβ reserved for future use. it's literally sitting there being reserved, minding its own business, an array of30of them. respect the grind π
πΈ Description πΈ
so this is used with the COMEDI_DEVINFO ioctl to get basic information about the device. that's it, that's the vibe check β basic info, delivered via ioctl, no drama. β
π¦ SEE ALSO π¦
Kernel file ./include/uapi/linux/comedi.h, plus this whole iconic friend group:
enum comedi_subdevice_type(9)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_devconfig(9)struct comedi_bufconfig(9)struct comedi_bufinfo(9)
ngl bestie, go read them all. iykyk. π
and that's the page!! sourced straight from ./include/uapi/linux, dated October 2026, eternal slay. periodt. πππ
π¦ 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