comedi_put_...vice_running(9)
π comedi_put_is_subdevice_running(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual, we're literally in the kernel driver zone rn π
β¨ NAME β¨
comedi_put_is_subdevice_running β basically you're dropping off the async command running thing on a subdevice, like "k bye, done with that reference" π«Ά
πΈ SYNOPSIS πΈ
void comedi_put_is_subdevice_running (struct comedi_subdevice *s );
π¦ ARGUMENTS π¦
sβ the COMEDI subdevice. like, the actual subdevice struct you're passing in, that one π
π« DESCRIPTION π«
so here's the tea β β this function decrements the reference counter. and which reference counter, you ask? the exact one that got incremented when comedi_get_is_subdevice_running returned true. so if you called the getter and it said "yeah it's running," you gotta call this to put that reference back before you dip, no cap πββοΈπ¨
it's giving symmetry. get β put. iconic behavior fr fr β¨
π SEE ALSO π
kernel file ./drivers/comedi/comedi_fops.c, plus all these besties:
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_set_spriv_auto_free(9)comedi_alloc_spriv(9)get_valid_routes(9)comedi_event(9)
like, go read them, they're all connected, iykyk π₯π
anyway that's the whole page bestie, mwah π β this lil number lives under ./drivers/comedi in the Kernel API Manual, dated October 2026. slay, go decrement 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