devfreq_cooling_gen_tables(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devfreq_cooling_gen_tables(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual (yes, the real one, devfreq_cooling_gen_tables(9), we're being fancy today ✨)


🌸 NAME 🌸

devfreq_cooling_gen_tables β€” literally generates a frequency table, bestie. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int devfreq_cooling_gen_tables (struct devfreq_cooling_device *dfc , int
num_opps );

like, that's it. two arguments. you got this. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dfc β€” a pointer to the devfreq cooling device. yes, a pointer. iconic behavior honestly.
  • num_opps β€” the number of OPPs. that's it, that's the number. πŸ”’

⭐ DESCRIPTION ⭐

okay so here's the tea β˜• β€” this function generates a frequency table, and the frequencies in it are stored in descending order. the way that works is it means the table is indexed by cooling device state, which is the whole point.

and why, you ask? it's for compatibility with drivers which do not register an Energy Model. so like, the drivers that haven't signed up for the EM yet still get to sit with us. inclusivity slay πŸŒˆπŸ’œ


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” we love a clean win πŸ‘‘
  • a negative error code on failure β€” 😭 not the negative error code

🌟 SEE ALSO 🌟

like a little friend group of functions, fr fr 🫢✨


mwah πŸ’‹ this page lives in ./drivers/thermal, it's dated October 2026, and it's brought to you by the Kernel API Manual β€” go read the source, iykyk πŸ§šβ€β™€οΈπŸŒ·

πŸ“¦ where this page comes from