comedi_dev_get_from_minor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to comedi_dev_get_from_minor(9) from the Kernel API Manual πŸ’…βœ¨ this one is short, sweet, and very β€œknow your minor numbers” energy.

✨ NAME ✨

comedi_dev_get_from_minor β€” Get COMEDI device by minor device number. that’s the whole vibe πŸŽ€

✨ SYNOPSIS ✨

struct comedi_device * comedi_dev_get_from_minor (unsigned int minor );

✨ ARGUMENTS ✨

  • minor β€” Minor device number. yes bestie, that exact number πŸ¦‹

✨ DESCRIPTION ✨

okay so this function finds the COMEDI device associated with the minor device number, if any, and increments its reference count. The COMEDI device is prevented from being freed until a matching call is made to comedi_dev_put. no cap, that matching call is the whole point πŸ’…

✨ RETURN ✨

You get a pointer to the COMEDI device if it exists, with its usage reference incremented. If no COMEDI device exists with the specified minor device number, you get NULL. that’s your signal it’s not there πŸ™ˆ

✨ SEE ALSO ✨

go read these too, bestie β€” they’re all part of the lore 🌸

mwah πŸ’‹ source/version: ./drivers/comedi Β· date: October 2026 Β· page: comedi_dev_get_from_minor(9) β€” bye bestie, main-character energy only 🫢

πŸ“¦ where this page comes from