STRUCT DEVFREQ_CPU_DATA(9)
πΈ NAME πΈ
okay so welcome to the <pink>Kernel API Manual</pink>, bestie, because today we're reading up on struct devfreq_cpu_data(9) β and what it does is literally just hold the per-cpu data. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
here's the whole struct, copy-pasted exactly because we do not freestyle signatures in this house:
struct devfreq_cpu_data {
struct list_head node;
struct device *dev;
unsigned int first_cpu;
struct opp_table *opp_table;
unsigned int cur_freq;
unsigned int min_freq;
unsigned int max_freq;
};
like, look at her. seven members. no notes. π
π¦ Members π¦
every field, no skipping, i promise:
nodeβ the list node, aka her little hookup into the list. that's the whole job.devβ a reference to the cpu device, fr fr.first_cpuβ the cpumask of the first cpu of a policy. yes, the first one. the main character of that policy, if you will. πopp_tableβ a reference to the cpu opp table.cur_freqβ the current frequency of the cpu. the now. the present moment. live laugh love. β¨min_freqβ the min frequency of the cpu.max_freqβ the max frequency of the cpu. she goes all the way up. π₯
π Description π
so this structure stores the required cpu_data of a cpu β that's the whole thing, that's the tea. β
and the cutest part? it's auto-populated by the governor. not you, bestie. you don't have to touch it. the governor handles it, it's giving very much "someone else already did the group project" energy and honestly? slay. π«Ά
π SEE ALSO π
- Kernel file
./drivers/devfreq/governor_passive.cβ go read it, iykyk π
and that's the page!! tysm for reading, mwah π this was brought to you by the <lavender>./drivers/devfreq</lavender> source tree, dated October 2026, and yes the header at the top and the footer at the bottom of the original both said struct devfreq_cpu_data(9) β 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