framer_get(9)
π framer_get(9) β the Kernel API Manual, bestie edition π
okay so real talk, this is the framer_get page from the Kernel API Manual, and honestly? it's a little baddie with a big job. let's get into it β¨
πΈ NAME πΈ
framer_get β lookup and obtain a reference to a framer.
like, you go find your framer and you grab a refcount on it. main character behavior fr fr π
β¨ SYNOPSIS β¨
struct framer * framer_get (struct device *dev , const char *con_id );
that's the whole vibe. one function, two args, returns a struct framer *. slay.
π¦ ARGUMENTS π¦
devβ the device that requests the framer. yeah, this one right here is the one asking, no cap π«Άcon_idβ the name of the framer from the device's point of view. iykyk, it's the device-centric name, not some objective universe name π«
π DESCRIPTION π
so this function returns the framer driver β but not before getting a refcount to it, because we're responsible like that. you literally cannot just take the framer and walk away, that's not the vibe.
and if there's no such framer? it returns -ENODEV. π yes, that error. it's giving "not found, bestie."
β οΈ important!! the caller is responsible for calling framer_put to release that count. do NOT forget. the refcount does not clean itself up, and that is a you problem if you ghost it π
π₯ SEE ALSO π₯
everything lives in the kernel file ./drivers/net/wan/framer/framer-core.c, and here's the whole friend group β go say hi πβ¨
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_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)__devm_framer_provider_of_register(9)framer_release(9)
and that's the whole page, periodt π this little cutie comes to you from ./drivers/net/wan/framer, dated October 2026, and the page name is framer_get(9) β remember the framer_put, bestie, that's the whole moral of the story ππ
π¦ 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