framer_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘βœ¨


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