STRUCT DEVFREQ_EVENT_DESC(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct devfreq_event_desc(9) โ€” like, the whole kernel API manual vibe, bestie

okay so this is a page from the Kernel API Manual about struct devfreq_event_desc, and honestly? it's giving "small struct, big job" energy. let's get into it โœจ


๐ŸŽ€ NAME ๐ŸŽ€

struct devfreq_event_desc โ€” the descriptor of devfreq-event device. that's it, that's the tweet ๐Ÿซถ


โœจ SYNOPSIS โœจ

struct devfreq_event_desc {
    const char *name;
    u32 event_type;
    void *driver_data;
    const struct devfreq_event_ops *ops;
 };

look at her. four fields. absolutely iconic. no cap ๐Ÿ’…


๐ŸŒธ Members ๐ŸŒธ

  • name โ€” the name of devfreq-event device. literally just what it's called, bestie ๐Ÿท๏ธ
  • event_type โ€” the type of the event, determined and used by the driver. the driver picks it, the driver owns it, main character energy fr ๐Ÿ’ซ
  • driver_data โ€” the private data for the devfreq-event driver. it's their business, not ours ๐Ÿ™ˆ
  • ops โ€” the operation to control devfreq-event device. the how-to-actually-do-stuff field ๐ŸŽฎ

๐Ÿฆ‹ Description ๐Ÿฆ‹

okay so picture this: each devfreq-event device is described with this structure (yes, the manpage says "a this structure," we're keeping the drama and moving on ๐Ÿ˜ญ). this structure contains the various data for the devfreq-event device.

the event_type describes what is going to be counted in the register โ€” and it might choose to count, like, read requests, write data in bytes, etc. lots of options, all valid ๐Ÿ‘‘

the full supported list of types lives in a specific header in:

include/dt-bindings/pmu/

iykyk โ€” that's where the type menu lives ๐Ÿ“


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

  • Kernel file ./include/linux/devfreq-event.h โ€” genuinely the bestie of this page
  • struct devfreq_event_dev(9)
  • struct devfreq_event_data(9)
  • struct devfreq_event_ops(9)

๐Ÿ’– lowkey a little reminder that event_type is doing the heavy lifting here โ€” it's literally deciding what gets counted in the register. respect her.

and that's the whole page, bestie โ€” no notes, we ate and left no crumbs ๐ŸŒˆโญ

sign-off time: this icon lives over in ./include/linux (Kernel API Manual), dated October 2026 โ€” stream struct devfreq_event_desc(9) ๐Ÿ’œ๐Ÿ‘‘๐ŸŽ€

๐Ÿ“ฆ where this page comes from