STRUCT GLOBAL_PARAMS(9)
π STRUCT GLOBAL_PARAMS π
Okay bestie, so this is a page from the Kernel API Manual β section 9 of the manual pages, the kernel API section, iykyk π
. It's all about struct global_params, and the vibe is: these are the global parameters, mostly tunable via sysfs. Periodt.
β¨ NAME β¨
struct global_params β global parameters, mostly tunable via sysfs. That's it, that's the whole name section, and honestly? Iconic. πΈ
π¦ SYNOPSIS π¦
Here's the struct in all her main character glory β copy it exactly, no typos, we don't do that here:
struct global_params {
bool no_turbo;
bool turbo_disabled;
int max_perf_pct;
int min_perf_pct;
};
Four fields. Lowkey a whole personality. π
π MEMBERS π
Okay so let's meet the cast, one member at a time, and I am obsessed:
no_turboβ aboolthat says whether or not to use turbo P-states. That's it. Just a yes/no on the turbo question. π¦turbo_disabledβ anotherbool, but this one is not a mood, it's a fact: it says whether or not turbo P-states are available at all. And how does it figure that out? Based on theMSR_IA32_MISC_ENABLEvalue, and whether or not the maximum reported turbo P-state is different from the maximum reported non-turbo one. Two whole checks. She did the research. π₯max_perf_pctβ anintholding the maximum capacity limit, expressed in percent of the maximum turbo P-state capacity. Percent of max turbo capacity, bestie, that's the whole thing. πmin_perf_pctβ anintholding the minimum capacity limit, expressed in percent of the maximum turbo P-state capacity. Same reference point as her sister up there: maximum turbo P-state capacity. π
Ngl, the naming here is doing a lot of heavy lifting βmaxvsmin,perf_pct, all lowercase with underscores. Very C, very demure. π
π SEE ALSO π
Go look at the kernel file ./drivers/cpufreq/intel_pstate.c β that's where this whole situation lives, fr fr. And while you're in the neighborhood, say hi to these other structs:
struct sample(9)struct pstate_data(9)struct vid_data(9)struct cpudata(9)struct pstate_funcs(9)
A whole little friend group. Go read them, they're waiting. π«Ά
π SIGN-OFF π
This page came from ./drivers/cpufreq, and it's dated October 2026 β yes, the future, she's ahead of her time β. Manual page footer says struct global_params(9) and that's the whole lore. Slay, 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