STRUCT DEVFREQ_SIMPLE_ONDEMAND_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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. specify 0 to use the default. valid value = 0 to 100. πŸŽ€
  • downdifferential β€” the cooldown queen. if the load is under upthreshold - downdifferential, the governor may consider slowing the frequency down. specify 0 to use the default. valid value = 0 to 100. and the rule, the one you canNOT break: downdifferential < upthreshold must 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