devm_framer_get(9)
π devm_framer_get(9) π
ok so this is a page from the Kernel API Manual, and it's literally all about devm_framer_get β bestie, we're getting a framer and we're doing it the managed way. periodt. β¨
πΈ NAME πΈ
devm_framer_get β lookup and obtain a reference to a framer. like, you point at a framer, you get a ref to it. iconic behaviour honestly π«Ά
π SYNOPSIS π
struct framer * devm_framer_get (struct device *dev , const char *con_id );
that's the whole vibe. two args, one struct framer * coming back at you π
π¦ ARGUMENTS π¦
devβ the device that requests this framer. it's giving "hi yes that's me, I would like one framer please" πcon_idβ the name of the framer from the device's point of view. so like, the device's own lil nickname for it, iykyk π
π DESCRIPTION π
okay so here's the tea β β this function gets the framer by calling framer_get, and then it associates a device with it using devres. very main character energy: you get the framer, and the device is now officially linked to it.
and the best part? on driver detach, the framer_put function is invoked on the devres data, and then β boom β the devres data is freed. automatic cleanup, no cap. you literally don't have to remember to do it yourself, the devres machinery handles it for you π§β¨
π₯ SEE ALSO π₯
Kernel file ./drivers/net/wan/framer/framer-core.c β go read it bestie, it's the whole source of truth π
and the full squad of related functions:
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_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)__devm_framer_provider_of_register(9)framer_release(9)
like, the whole extended friend group ππ₯
ngl the devm_ prefix is doing a LOT of heavy lifting here β it's the "and I'll clean it up for you" of the kernel world. love that for us π
and that's the page!! mwah π
sign-off szn: this beauty lives under ./drivers/net/wan/framer, it's dated October 2026, and yeah β the page you just read is devm_framer_get(9). slay, go get yourself a framer (responsibly) π
β¨
π¦ 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