comedi_event(9)
π comedi_event(9) β the Kernel API Manual page, bestie edition π
okay so first things first: this is comedi_event(9), straight out of the Kernel API Manual, and it's literally the little function that handles events for your asynchronous COMEDI command. yes queen, it's a 9 β kernel-section energy only. π¦
β¨ NAME β¨
comedi_event β handle events for asynchronous COMEDI command π«Ά
β¨ SYNOPSIS β¨
void comedi_event (struct comedi_device *dev , struct comedi_subdevice
*s );
no cap, that's the whole signature. two pointers in, nothing back out. void said "I don't return, I serve." π
β¨ ARGUMENTS β¨
devβ the COMEDI device. you know, the whole aesthetic. πsβ the COMEDI subdevice. the specific little corner of the device we're doing the vibe check on.
β¨ CONTEXT β¨
so where are you allowed to call this? it's in_interrupt (usually β like, usually, not always, don't @ me), and the s->spin_lock spin-lock is not held.
β οΈ read that again bestie: spin-lock not held. this function is not your moment to be holding locks, fr fr.
β¨ DESCRIPTION β¨
here's the tea β β if an asynchronous COMEDI command is active on the subdevice, this function goes through any COMEDI_CB_... event flags that have been set, and those flags are usually set by an interrupt handler. π₯
and what do those flags actually do? they may:
- change the run state of the asynchronous command π
- wake a task π΄β‘οΈπ³
- and/or send a
SIGIOsignal π£
so basically: flags go in, state changes / tasks wake up / signals fly out. iconic. π
β¨ SEE ALSO β¨
the whole friend group, no gatekeeping:
- Kernel file
./drivers/comedi/comedi_fops.c struct comedi_file(9)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)
aaaand that's the page!! π one last vibe check for the sign-off: this whole thing lives under ./drivers/comedi, and it's dated October 2026, with the manual name being comedi_event(9) in case you forgot already. go forth and handle those events, bestie β slay π
β¨π
π¦ 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