devm_framer_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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