dpll_device_get(9)
π dpll_device_get(9) π
okay so this is a page from the Kernel API Manual (yes, the kernel kernel, we're being serious and adorable at the same time) and today's main character is dpll_device_get β the function that finds you an existing dpll device or, if there isn't one yet, just goes ahead and makes you a fresh one. icon behavior, honestly.
β¨ NAME β¨
dpll_device_get β find an existing dpll device, or create a new one, bestie π
πΈ SYNOPSIS πΈ
struct dpll_device * dpll_device_get (u64 clock_id , u32 device_idx ,
struct module *module , dpll_tracker *tracker );
likeβ¦ look at that signature. so structured. so valid. π
π¦ ARGUMENTS π¦
clock_idβ theclock_idof whoever created this thing (the creator's clock id, no cap)device_idxβ the index handed to you by the device driver, it's literally the driver's own little labelmoduleβ a reference to the module that's registeringtrackerβ the tracking object for the reference you just acquired, so nobody loses track of it π«Ά
π DESCRIPTION π
okay so the whole vibe: you call this and it gets you the existing object of a dpll device β and that object is unique for the arguments you passed in. and if that object doesn't exist yet? it creates a new one. yes ma'am, find-or-create, we love a function that does both π
π₯ CONTEXT π₯
it acquires a lock β specifically dpll_lock. so like, be aware, there's locking going on. don't be weird about it. β
π RETURN π
- a valid
dpll_devicestruct pointer if it succeeded π ERR_PTR(X)β that's the error case, and it's an error π
π SEE ALSO π
- Kernel file
./drivers/dpll/dpll_core.c dpll_device_put(9)dpll_device_register(9)dpll_device_unregister(9)dpll_pin_get(9)dpll_pin_put(9)dpll_pin_fwnode_set(9)fwnode_dpll_pin_find(9)dpll_pin_register(9)dpll_pin_unregister(9)dpll_pin_on_pin_register(9)dpll_pin_on_pin_unregister(9)dpll_pin_ref_sync_pair_add(9)dpll_pin_own_dpll_ref_first(9)
like, that's the whole friend group right there. go read them too, iykyk π
alright bestie, that's the page! π§ it lives over in ./drivers/dpll, and it's dated October 2026 β so mark your calendars, this one's from the future (or at least from the version string's dreams). slay, bye! π
β¨π
π¦ 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