STRUCT DEVFREQ_EVENT_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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