STRUCT LEVELS_OFFSET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie, welcome to the Kernel API Manual β€” yes, the whole manual, and today's main character is struct levels_offset. she's small, she's packed, and she knows exactly where every SST PP level lives in the register bank. lowkey iconic.


✨ NAME ✨

struct levels_offset β€” Offsets to each SST PP level πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct levels_offset {
    u64 sst_pp_level0_offset :8;
    u64 sst_pp_level1_offset :8;
    u64 sst_pp_level2_offset :8;
    u64 sst_pp_level3_offset :8;
    u64 sst_pp_level4_offset :8;
    u64 reserved :24;
 };

like. look at her. five perfectly matched :8 bitfields and one :24 of pure reserved potential. the symmetry?? we're obsessed. 😭✨


🌸 Members 🌸

  • sst_pp_level0_offset β€” Qword offset to the register block of PP level 0. level zero, the prequel, the origin story fr fr πŸ’–
  • sst_pp_level1_offset β€” Qword offset to the register block of PP level 1. we love a sequel 🫢
  • sst_pp_level2_offset β€” Qword offset to the register block of PP level 2. the trilogy is thriving πŸ’…
  • sst_pp_level3_offset β€” Qword offset to the register block of PP level 3. still going, still slaying 🌈
  • sst_pp_level4_offset β€” Qword offset to the register block of PP level 4. the finale, the boss level πŸ‘‘
  • reserved β€” Reserved for future use. bestie this is the spare room of the struct β€” nothing lives here yet, but the potential?? highkey immaculate πŸŽ€

πŸ”₯ Description πŸ”₯

so the way this works ✨ β€” this structure is used store offsets of SST PP levels in the register bank. that's the whole job. she holds the map, she doesn't go on the journey, and honestly? that's main character energy of a different kind.

and the packing? this is packed to the same format as defined in the specifications. same format, no cap, exactly as the spec says it. don't go rearranging her bits, she's built to spec for a reason πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c β€” the struct's actual home address, go say hi 🏠
  • sst_header(9)
  • struct cp_header(9)
  • struct pp_header(9)
  • struct feature_offset(9)
  • struct pp_control_offset(9)
  • struct pp_status_offset(9)
  • struct perf_level(9)
  • struct tpmi_per_power_domain_info(9)
  • struct tpmi_sst_struct(9)
  • struct tpmi_sst_common_struct(9)
  • map_cdies(9)
  • map_partition_power_domain_id(9)

🫢 that's the whole tour bestie β€” every member, every offset, every SEE ALSO. nothing skipped, we don't do that here. iykyk ✨

and that's a wrap on our little kernel-API chapter πŸŽ€ source/version vibes straight from ./drivers/platform/x86/intel/s..., dated October 2026 β€” she's a libra (probably), and she's struct levels_offset(9) forever. mwah πŸ’‹πŸ’œ

πŸ“¦ where this page comes from