comedi_get_...vice_running(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a struct 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:

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