STRUCT DEVFREQ_EVENT_OPS(9)
π struct devfreq_event_ops(9) π
okay bestie, buckle up β this is a page from the Kernel API Manual, and it's all about struct devfreq_event_ops, which is literally the operations of a devfreq-event device. yes it's as iconic as it sounds π
β¨ NAME β¨
struct devfreq_event_ops β the operations of devfreq-event device π¦
πΈ SYNOPSIS πΈ
struct devfreq_event_ops {
int (*enable)(struct devfreq_event_dev *edev);
int (*disable)(struct devfreq_event_dev *edev);
int (*reset)(struct devfreq_event_dev *edev);
int (*set_event)(struct devfreq_event_dev *edev);
int (*get_event)(struct devfreq_event_dev *edev, struct
devfreq_event_data *edata);
};
π Members π
enableβ turns the devfreq-event device ON. wake up queen, it's your time β¨disableβ turns the devfreq-event device OFF. nap time, we stan rest π€resetβ resets, like, all the settings of the devfreq-event device. full factory reset energy π«Άset_eventβ sets the specific event type for the devfreq-event device. very "let me be clear about what I want" of it πget_eventβ gets the result of the devfreq-event device with the specific event type. collect your data bestie π
π Description π
This structure contains the devfreq-event device operations, and here's the thing β these are the operations that can actually be implemented by devfreq-event device drivers. so like, the struct is the menu, and the drivers are the ones who have to actually cook π₯ no cap.
π¦ SEE ALSO π¦
- Kernel file
./include/linux/devfreq-event.hβ literally the whole vibe lives here struct devfreq_event_dev(9)struct devfreq_event_data(9)struct devfreq_event_desc(9)
okay that's the whole page, go be a main character in your driver code π§π
sign-off tea β: this cutie lives in ./include/linux, and the date on it is October 2026. 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