STRUCT TPMI_INFO_HEADER(9)
β¨ NAME β¨
okay so this is struct tpmi_info_header β it's literally the CPU package ID to PCI device mapping information, and it lives in the Kernel API Manual (which is, like, the manual name bestie, in case you were wondering π«Ά).
π SYNOPSIS π
struct tpmi_info_header {
u64 fn:3;
u64 dev:5;
u64 bus:8;
u64 pkg:8;
u64 segment:8;
u64 partition:2;
u64 cdie_mask:16;
u64 reserved:13;
u64 lock:1;
};
π«Ά Members π«Ά
fnβ the PCI function number. that's it, that's the whole vibe β¨devβ the PCI device number π₯busβ the PCI bus number πpkgβ the CPU Package id. like the package's whole identity, main character energy πsegmentβ the PCI segment id πΈpartitionβ the Package Partition id πcdie_maskβ a bitmap of the compute dies in the current partition π§ (yes babe, a bitmap, it's giving binary art)reservedβ reserved for future use π aka not yours to touch, it's saving that seatlockβ when set to1the register is locked and becomes read-only until next reset. Not for use by the OS driver. π so bestie, do not go there.
fr fr, that lock field is a hard no for the OS driver. "not for use by the OS driver" is not a suggestion, it's a boundary π
π Description π
so this struct is the structure to read hardware provided mapping information. that's the whole point of it, the way that it just exists to read the mapping info the hardware hands you. iconic, honestly π¦
π SEE ALSO π
- Kernel file
./drivers/platform/x86/intel/vsec_tpmi.cβ go read the source, iykyk π - struct
intel_tpmi_pfs_entry(9) - struct
intel_tpmi_pm_feature(9) - struct
intel_tpmi_info(9) - struct
tpmi_feature_state(9)
all of these are the little friend group this struct runs with, no cap π«Ά
okay so that's the whole page! mwah π this came from the Kernel API Manual, source path ./drivers/platform/x86/intel, dated October 2026, and it's struct tpmi_info_header(9) β slay, go read the docs bestie π
β¨π
π¦ 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