STRUCT OMAP_SR_CLASS_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to enable'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 β€” struct omap_sr_pmic_data(9), struct omap_smartreflex_dev_attr(9), struct omap_sr_nvalue_table(9), struct omap_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