STRUCT DEVFREQ_DEV_STATUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of devfreq_dev_status represents. that's the whole window, the entire era, the full timestamp situation πŸ•°οΈ
  • busy_time β€” the slice of total_time where 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 with private_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