STRUCT DEVFREQ_DEV_STATUS(9)
π struct devfreq_dev_status(9) π
okay so bestie, welcome to the Kernel API Manual page for struct devfreq_dev_status(9) β this is the moment, this is the vibe, let's get into it β¨
πΈ NAME πΈ
struct devfreq_dev_status β literally the data that gets handed from a devfreq user device over to the governors, and it represents the performance statistics. no cap, that's the whole personality π
π¦ SYNOPSIS π¦
struct devfreq_dev_status {
unsigned long total_time;
unsigned long busy_time;
unsigned long current_frequency;
void *private_data;
};
look at her. four fields. absolutely iconic π
π Members π
total_timeβ the total time that this instance ofdevfreq_dev_statusrepresents. that's the whole window, the entire era, the full timestamp situation π°οΈbusy_timeβ the slice oftotal_timewhere the device was actually working. like, out of all that time, this is how much of it was her being productive πͺcurrent_frequencyβ the operating frequency. the speed she's running at rn π₯private_dataβ an entry that the devfreq framework does not specify, okay? a device and a specific governor can have their own little protocol going on withprivate_data. but β and this is the important part, bestie β because this is governor-specific, a governor that uses this will only be compatible with devices that are aware of it. so it's giving exclusive club, invite only, iykyk π
fr fr, read that private_data note again if you're writing a governor. compatibility is not automatic here and the kernel will not hold your hand π
π SEE ALSO π
- Kernel file
./include/linux/devfreq.h struct devfreq_dev_profile(9)struct devfreq_stats(9)struct devfreq(9)struct devfreq_simple_ondemand_data(9)struct devfreq_passive_data(9)
the whole friend group, go say hi π«Ά
and that's the page! sourced from ./include/linux, dated October 2026 β mwah, go forth and govern responsibly, bestie ππ§β
π¦ 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