STRUCT DEVFREQ_SIMPLE_ONDEMAND_DATA(9)
β¨ struct devfreq_simple_ondemand_data β¨
okay so we're deep in the Kernel API Manual bestie, like full kernel-mode group chat, and this page is all about struct devfreq_simple_ondemand_data β the little vibe-check struct whose void *data gets fed to struct devfreq and to devfreq_add_device. it's giving "tiny struct, big responsibility" ngl π
π¦ SYNOPSIS π¦
struct devfreq_simple_ondemand_data {
unsigned int upthreshold;
unsigned int downdifferential;
};
look at her. two unsigned ints. no notes. iconic. β¨
πΈ Members πΈ
upthresholdβ bestie this is THE threshold. if the load is over this value, the frequency jumps. that's it, that's the whole job, and she ate. specify0to use the default. valid value =0to100. πdowndifferentialβ the cooldown queen. if the load is underupthreshold - downdifferential, the governor may consider slowing the frequency down. specify0to use the default. valid value =0to100. and the rule, the one you canNOT break:downdifferential < upthresholdmust hold. no cap, that's a hard requirement π
π«Ά Description π«Ά
so like, if the devfreq_simple_ondemand_data pointer that gets fed to the governor is NULL? the governor just uses the default values. she's flexible like that ππΈ
π SEE ALSO π
go snoop the kernel file ./include/linux/devfreq.h for all the related lore:
struct devfreq_dev_status(9)struct devfreq_dev_profile(9)struct devfreq_stats(9)struct devfreq(9)struct devfreq_passive_data(9)
fr fr read those too, the whole devfreq friend group is linked, iykyk π
and that's the page bestie!! huge shoutout to ./include/linux (that's the source section, mwah) and to October 2026 for the version date β mwah mwah, love you, bye!! πππ¦π
π¦ 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