STRUCT OMAP_SR_CLASS_DATA(9)
struct omap_sr_class_data(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one is a whole struct and it's honestly giving "polite little info packet" energy. it's from the Linux kernel docs, it lives in the power/smartreflex corner of the world, and it's lowkey iconic. let's go π«Ά
πΈ NAME πΈ
struct omap_sr_class_data β literally just Smartreflex class driver info. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
here's the struct in all its glory, copy-pasted with love and zero edits:
struct omap_sr_class_data {
int (*enable)(struct omap_sr *sr);
int (*disable)(struct omap_sr *sr, int is_volt_reset);
int (*configure)(struct omap_sr *sr);
int (*notify)(struct omap_sr *sr, u32 status);
u8 notify_flags;
u8 class_type;
};
four function pointers, two u8 fields, one struct. the way it's so tidy ππ
π¦ Members π¦
enableβ the API to enable a particular class smaartreflex. (yes, two a's β that's literally how it's spelled in the doc, not me being chaotic for once π)disableβ the API to disable a particular class smartreflex. the yin toenable's yang, we stan a balanced pair πconfigureβ the API to configure a particular class smartreflex. set it up, make it cute β¨notifyβ the API to notify the class driver about an event in SR. not needed for class3 β so if you're on class3, you can literally skip this one, no cap πnotify_flagsβ specifies the events to be notified to the class driver. it's the "which notifications do you actually want" list πclass_typeβ specifies which smartreflex class. can be used by the SR driver to take any class based decisions. main character field ngl π
fr fr, that's the whole struct β every member accounted for, nothing skipped, we don't do that here π«Ά
π SEE ALSO π
- Kernel file
./include/linux/power/smartreflex.hβ structomap_sr_pmic_data(9), structomap_smartreflex_dev_attr(9), structomap_sr_nvalue_table(9), structomap_sr_data(9)π¦
go read those too, they're all in the same friend group, iykyk πΈ
and that's the page!! π this cutie came from ./include/linux/power, dated October 2026, and yes the title up top is struct omap_sr_class_data(9) β slay, periodt, go configure some smartreflex classes bestie ππ₯π
π¦ 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