STRUCT PSTATE_IDX_REVMAP_DATA(9)
π 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 thepowernv_freqscpufreq_frequency_table, for the frequency that corresponds topstate_id. so like, id β table position β actual frequency, iykyk π₯hentryβ anhlist_nodethat hooks this entry into thepstate_revmaphashtable. she's literally holding the whole thing together, main character energy fr fr π
π¦ SEE ALSO π¦
- the kernel file
./drivers/cpufreq/powernv-cpufreq.cβ that's where the lore lives π - struct
global_pstate_info(9)β calc_global_pstate(9)π§gpstate_timer_handler(9)π
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
- 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