STRUCT PSTATE_IDX_REVMAP_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pstate_idx_revmap_data(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil struct deep in the cpufreq lore and honestly it's giving unsung hero ✨


✨ NAME ✨

struct pstate_idx_revmap_data β€” literally one single entry in the hashmap pstate_revmap, and that hashmap is indexed by a function of pstate id. no cap, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

struct pstate_idx_revmap_data {
    u8 pstate_id;
    unsigned int cpufreq_table_idx;
    struct hlist_node hentry;
 };

that's the whole struct, she's small but she's doing the work πŸ’…


πŸŽ€ Members πŸŽ€

  • pstate_id β€” the pstate id for this entry. that's it, that's her whole job πŸ’–
  • cpufreq_table_idx β€” this is an index into the powernv_freqs cpufreq_frequency_table, for the frequency that corresponds to pstate_id. so like, id β†’ table position β†’ actual frequency, iykyk πŸ”₯
  • hentry β€” an hlist_node that hooks this entry into the pstate_revmap hashtable. she's literally holding the whole thing together, main character energy fr fr πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹


ok before you go β€” this page lives under ./drivers/cpufreq, and it's dated October 2026, so like… mark your calendar bestie πŸ—“οΈπŸ’– mwah, go slay some cpufreq πŸ’…βœ¨
πŸ“¦ where this page comes from