devm_framer_optional_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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