__devm_frame..._of_register(9)
okay bestie, gather round π this is the page for __devm_framer_provider_of_register(9), straight out of the Kernel API Manual, and it's lowkey iconic. no cap, it's giving "small function, big provider energy" β¨
π NAME π
__devm_framer_provider_of_register β create/register a framer provider with the framework. that's it, that's the tweet π«Ά
π¦ SYNOPSIS π¦
struct framer_provider * __devm_framer_provider_of_register (struct
device *dev , struct module *owner , struct framer *(*of_xlate)(struct
device *dev, const struct of_phandle_args *args) );
like, look at her. three lines, all business, zero notes π
π ARGUMENTS π
devβ thestruct devicefor the framer provider. main character device energy fr fr πownerβ the module owner that containsof_xlate. it's giving "who's your module owner" energy πof_xlateβ the function pointer you use to obtain a framer instance from the framer provider. obsessed with her π§
β¨ DESCRIPTION β¨
okay so here's the tea β it builds a struct framer_provider out of dev and the of_xlate function pointer. yes bestie, those are literally the two ingredients π«Ά
in the case of dt boot, this is what's used for finding the framer instance from the framer provider. while it's at it, it also associates the device with the framer provider using devres β multitasking queen π
and then the cleanup arc: on driver detach, the release function is invoked on the devres data, then the devres data is freed. periodt. π
tl;dr bestie: detach happens, release function runs on thedevresdata, then thedevresdata gets freed. the lifecycle is giving responsible adult πΈ
π SEE ALSO π
Kernel file ./drivers/net/wan/framer/framer-core.c β and the whole framer friend group, honestly? they ate. go say hi to:
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)devm_framer_optional_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)framer_release(9)
and that's the page, bestie π«Ά the source/version line points at ./drivers/net/wan/framer, the date is October 2026, and she's filed under __devm_frame..._of_register(9). go off, provider icon πβ¨
π¦ 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