STRUCT FRAMER(9)
π 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 frmutexβ a mutex to protectframer_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 counterpwrβ 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
- 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