STRUCT AMD_SHMEM_INFO(9)
π¦ struct amd_shmem_info π¦
okay bestie, so this is a page from the Kernel API Manual β yes, the Kernel API Manual, we're literally in the big leagues today β and it's all about struct amd_shmem_info, aka the shared memory table for AMD HFI. slay. let's get into it β¨
π NAME π
struct amd_shmem_info β the shared memory table for AMD HFI. that's the whole vibe, no notes. π
πΈ SYNOPSIS πΈ
here's the struct in all its glory, copied exactly so you know I'm not making anything up, bestie:
struct amd_shmem_info {
struct acpi_pcct_ext_pcc_shared_memory header;
u32 version_number :8, n_logical_processors :8,
n_capabilities :8, table_update_context :8;
u32 n_bitmaps :8, reserved :24;
u32 table_data[];
};
look at those bitfields. the way they're just sitting there being all compact and :8 and :24β¦ obsessed. π«Ά
π Members π
every field, one by one, no skips, we do not leave anyone on read in this house π
headerβ the PCCT table header, and it's carrying the signature, the length flags and the command. it's giving "main character with three jobs". πversion_numberβ the version number of the table. yes bestie, it's exactly what it sounds like. πn_logical_processorsβ the number of logical processors. keep counting, icon. βn_capabilitiesβ the number of ranking dimensions, like performance, efficiency, etc. multiple dimensions?? we stan a multidimensional queen. πtable_update_contextβ the command being sent over the subspace. subspace!! so sci-fi, so iconic. πn_bitmapsβ the number of 32-bit bitmaps used to enumerate all the APIC IDs, and this is based on the maximum APIC ID enumerated in the system. so it scales, periodt. πreservedβ 24-bit spare. it's just vibing off to the side, not doing anything, and honestly? relatable. πtable_dataβ the Bit Map(s) of enabled logical processors, followed by the ranking data for each logical processor. maps first, then ranks, in that exact order, don't @ me. π
β¨ SEE ALSO β¨
go read these next, bestie, they're all in the family π«Ά
- Kernel file
./drivers/platform/x86/amd/hfi/hfi.c struct amd_hfi_classes(9)struct amd_hfi_cpuinfo(9)amd_hfi_online(9)amd_hfi_offline(9)
ngl, the whole squad lives over in ./drivers/platform/x86/amd/hfi β that's the source, and this page is dated October 2026. ποΈ
kk that's the whole page!! you understood it, you ate it up, I'm so proud of you. now go read amd_hfi_online(9) and text me your thoughts ππ§ββοΈ
./drivers/platform/x86/amd/hfi Β· October 2026 Β· struct amd_shmem_info(9) π«
π¦ 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