comedi_dev_get_from_minor(9)
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 πΈ
- Kernel file
./drivers/comedi/comedi_fops.c struct comedi_file(9)comedi_dev_put(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)comedi_event(9)
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
- 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