STRUCT COMEDI_DEVCONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– STRUCT COMEDI_DEVCONFIG(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual and it's all about struct comedi_devconfig β€” the little struct that's, like, the moment for configuring a legacy COMEDI device. yes we're in kernel land. yes it's giving old-school. let's go πŸŽ€


✨ NAME ✨

struct comedi_devconfig β€” the struct you use to configure a legacy COMEDI device 🫢


✨ SYNOPSIS ✨

struct comedi_devconfig {
    char board_name[COMEDI_NAMELEN];
    int options[COMEDI_NDEVCONFOPTS];
 };

✨ MEMBERS ✨

  • board_name β€” a null-terminated string that says which kind of board you wanna configure. literally the board's name-tag πŸ’…
  • options β€” an array of integer configuration options. it's giving "bag of numbers the driver will interpret however it wants" ✨

✨ DESCRIPTION ✨

so this struct is used with the COMEDI_DEVCONFIG ioctl to configure a "legacy" COMEDI device β€” think an ISA card, like, vintage vintage πŸŽ€

πŸ’€ real talk: not every COMEDI driver supports this. like, at all.

the drivers that do support it fall into two vibes:

  1. they expect the board_name you give to match one of a list of names registered with the COMEDI core, or
  2. they expect that board_name to match the COMEDI driver name itself.

and the configuration options? those are handled in a driver-specific manner β€” meaning every driver does its own thing with them, no cap. so don't come in expecting one universal meaning, bestie 😭


✨ SEE ALSO ✨

  • Kernel file ./include/uapi/linux/comedi.h
  • 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_devinfo(9)
  • struct comedi_bufconfig(9)
  • struct comedi_bufinfo(9)

okay that's the whole page, periodt. this icon lives in ./include/uapi/linux and the version stamp is October 2026 β€” go off, kernel docs, you ate πŸ’œβœ¨

πŸ“¦ where this page comes from