comedi_get_...vice_running(9)
β¨ comedi_get_is_subdevice_running β¨
okay so real quick before we dive in β this is from the Kernel API Manual, section 9, and the page is literally called comedi_get_...vice_running(9) (yes the title is doing the absolute most with those ellipsis dots, we love a dramatic abbreviation π
). Anyway. Buckle up bestie, this one's short but she's important.
πΈ NAME πΈ
comedi_get_is_subdevice_running β get if an async command is running on a subdevice π
π¦ SYNOPSIS π¦
bool comedi_get_is_subdevice_running (struct comedi_subdevice *s );
that's it. that's the whole vibe. one function, one argument, returns a bool. iconic behaviour honestly β¨
π ARGUMENTS π
sβ your COMEDI subdevice. that's the whole thing, she's just astruct comedi_subdevice *and she's the main character here π«Ά
π₯ DESCRIPTION π₯
okay so here's the tea π΅ β if an asynchronous COMEDI command is running on the subdevice, this function increments a reference counter. like, it's putting a little hold on it, iykyk.
and the important part, no cap: if the function's return value tells you that a command is running, then the details of that command will not be destroyed before you make a matching call to comedi_put_is_subdevice_running. so basically it's a little "hey don't delete this yet, i'm still looking at it" situation, and you have to pair them up. matching calls only, bestie. don't leave her hanging π
π RETURN π
trueβ if an asynchronous COMEDI command is active on the subdevice πfalseβ otherwise π
that's the whole return value situation. binary. clean. we stan.
π SEE ALSO π
go look at these, they're all part of the same little family:
- 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_put_is_subdevice_running(9)comedi_set_spriv_auto_free(9)comedi_alloc_spriv(9)get_valid_routes(9)comedi_event(9)
like genuinely the whole friend group is in the SEE ALSO and they all ate π₯
β quick reminder: the get/put pairing is not optional. get it, use the details, put it back. that's the whole assignment β¨
and that's the page!! π brought to you by the fine folks over at ./drivers/comedi, dated October 2026, filed under comedi_get_...vice_running(9) β mwah, love u, go increment that refcount responsibly ππ
π¦ 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