STRUCT GLOBAL_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” a bool that says whether or not to use turbo P-states. That's it. Just a yes/no on the turbo question. πŸ¦‹
  • turbo_disabled β€” another bool, 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 the MSR_IA32_MISC_ENABLE value, 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 β€” an int holding 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 β€” an int holding 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 β€” max vs min, 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