STRUCT DEVFREQ_EVENT_DESC(9)
๐ 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
- 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