STRUCT FRAMER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct framer(9) πŸ’…

okay so bestie, we're in the Kernel API Manual today and the main character is literally struct framer β€” the struct that represents the framer device ✨ no cap, that's the whole vibe.


πŸŽ€ NAME πŸŽ€

struct framer β€” represents the framer device πŸ¦‹


✨ SYNOPSIS ✨

struct framer {
    struct device                   dev;
    int id;
    const struct framer_ops         *ops;
    struct mutex                    mutex;
    int init_count;
    int power_count;
    struct regulator                *pwr;
    struct work_struct              notify_status_work;
    struct blocking_notifier_head   notifier_list;
    struct delayed_work             polling_work;
    struct framer_status            prev_status;
 };

like, that's the whole struct, laid out and iconic πŸ’–


🌸 Members 🌸

okay so here's the member-by-member tour, iykyk πŸ‘‘

  • dev β€” the framer device itself 🫢
  • id β€” the id of the framer device πŸ”₯
  • ops β€” function pointers for performing framer operations, the actual worker bees fr fr
  • mutex β€” a mutex to protect framer_ops πŸ”’
  • init_count β€” used to protect when the framer is used by multiple consumers 😭 (yes, multiple consumers can share it, she's popular)
  • power_count β€” used to protect when the framer is used by multiple consumers ⚑ same situation, different counter
  • pwr β€” the power regulator associated with the framer 🌈
  • notify_status_work β€” work structure used for status notifications, she's literally the messenger πŸ’Œ
  • notifier_list β€” notifier list used for notifications πŸ“£
  • polling_work β€” delayed work structure used for the polling task ⏰
  • prev_status β€” previous read status used by the polling task to detect changes πŸ‘€ like a glow-up detector but for status

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/framer/framer.h
  • enum framer_iface(9)
  • enum framer_clock_type(9)
  • struct framer_config(9)
  • struct framer_status(9)
  • enum framer_event(9)

bestie reminder: all of these cross-refs are (9) kernel API pages, so go read them if you wanna be as smart as her πŸ’…

and that's the page!! sourced straight from ./include/linux/framer, dated October 2026 β€” bestie era, periodt πŸŒŸπŸ’œ

πŸ“¦ where this page comes from