devm_framer_optional_get(9)
π devm_framer_optional_get(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual and the star of the show is devm_framer_optional_get(9). yes that's a whole mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
devm_framer_optional_get β lowkey look up a framer and grab a reference to it, but likeβ¦ only if it's optional, yk? β¨
πΈ SYNOPSIS πΈ
struct framer * devm_framer_optional_get (struct device *dev , const char *con_id );
so you hand it a device and a name and it hands you back a struct framer *. cute. simple. iconic π
π¦ ARGUMENTS π¦
devβ the device that's requesting this framer. like, it's the one asking, bestie, it's giving main character energy πcon_idβ the name of the framer from the device's point of view. yes, POV matters here, it's literally the framer's name as this device sees it π
π DESCRIPTION π
okay so this is literally the same as devm_framer_get EXCEPT β and this is the whole vibe β if the framer doesn't exist, that's not an error. nope. no cap. it does not return -ENODEV in that case. instead you just get the NULL framer back. π«§
so likeβ¦ missing framer? not a crisis. not a whole thing. you just get NULL and you move on with your life, periodt πβ¨
fr fr remember: this is the optional one. the non-optional devm_framer_get still cares, but this one is chill about it π
π§ SEE ALSO π§
all the sibling functions, gathered for your scrolling pleasure β the kernel file lives at ./drivers/net/wan/framer/framer-core.c and honestly there's a whole friend group here:
framer_init(9)framer_exit(9)framer_power_on(9)framer_power_off(9)framer_get_status(9)framer_set_config(9)framer_get_config(9)framer_notifier_register(9)framer_notifier_unregister(9)framer_get(9)framer_put(9)devm_framer_get(9)framer_create(9)framer_destroy(9)devm_framer_create(9)framer_provider_simple_of_xlate(9)__framer_provider_of_register(9)framer_provider_of_unregister(9)__devm_framer_provider_of_register(9)framer_release(9)
anyway that's the whole page, mwah π this one's from ./drivers/net/wan/framer and it's dated October 2026 β devm_framer_optional_get(9) out, stay slay, go read your framers ππ
π¦ 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