cpufreq_add_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cpufreq_add_dev(9) β€” a Kernel API Manual moment πŸ’–

okay so real talk, bestie: this one is a page from the Kernel API Manual, and it's about the cpufreq interface for a CPU device. yes that cpufreq. the one keeping your laptop from melting. it's a short one, so let's get into it 🫢


✨ NAME ✨

cpufreq_add_dev β€” literally the cpufreq interface for a CPU device. that's the whole vibe check, no cap.


🌸 SYNOPSIS 🌸

int cpufreq_add_dev (struct device *dev , struct subsys_interface *sif );

that's the exact signature, copy it character for character, do NOT freestyle it πŸ™ˆ


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the CPU device. like, the device representing a CPU. that's it, that's the whole icon ✨
  • sif β€” a subsystem interface structure pointer. and here's the thing: it's not used. like, it's there, it's invited to the party, it's just not doing anything πŸ’€ (not me showing up to the function call and contributing nothing)

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file for all of this lives at ./drivers/cpufreq/cpufreq.c β€” that's the source of truth, go read it iykyk πŸ‘‘

and here's the whole friend group, in the order they're listed, because i would never leave anyone out:

fr fr: if you're poking at CPU frequency stuff, at least one of these is gonna be your new bestie. go say hi. πŸ’…

🌈 and that's the page 🌈

okay so like a proper sign-off, because we're classy: this lives under ./drivers/cpufreq, dated October 2026, and it's the page for cpufreq_add_dev(9). periodt. go keep those cores cool bestie, you ate πŸ’–πŸ”₯🧚

πŸ“¦ where this page comes from