STRUCT COMEDI_FILE(9)
πΈ NAME πΈ
okay bestie, welcome to the struct comedi_file(9) page from the Kernel API Manual β it's all about struct comedi_file, which is per-file private data for a COMEDI device. π«Άβ¨
β¨ SYNOPSIS β¨
here's the struct, copied exactly because we do not play with code, periodt:
struct comedi_file {
struct comedi_device *dev;
struct comedi_subdevice *read_subdev;
struct comedi_subdevice *write_subdev;
unsigned int last_detach_count;
unsigned int last_attached:1;
};
π«Ά Members π«Ά
okay so member by member, no skips, no cap:
devβ COMEDI device. literally the main character field. πread_subdevβ current "read" subdevice. that's the read one rn. π¦write_subdevβ current "write" subdevice. and that's the write one rn. πlast_detach_countβ last known detach count. keeping the receipts. π§last_attachedβ last known attached/detached state. iconic little status holder. β
π SEE ALSO π
bestie, go peek at these too:
- Kernel file:
./drivers/comedi/comedi_fops.c comedi_dev_put(9)comedi_dev_get_from_minor(9)comedi_is_subdevice_running(9)comedi_get_is_subdevice_running(9)comedi_put_is_subdevice_running(9)comedi_set_spriv_auto_free(9)comedi_alloc_spriv(9)get_valid_routes(9)comedi_event(9)
mwah π this lil page comes from ./drivers/comedi, dated October 2026, and it's all about struct comedi_file(9) β catch u later, bestie! ππ
π¦ 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