STRUCT COMEDI_DEVINFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 -1 if there isn't one. the -1 is lowkey doing the most but it's correct πŸ’…
  • write_subdevice β€” index of the current "write" subdevice, also -1 if none. twins! πŸ‘‘
  • unused β€” reserved for future use. it's literally sitting there being reserved, minding its own business, an array of 30 of 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