STRUCT SMEM_PARTITION_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct smem_partition_header(9) πŸ’–

okay so this is from the Kernel API Manual bestie, and it's literally the glow-up guide to struct smem_partition_header β€” the header of the partitions ✨


🌸 NAME 🌸

struct smem_partition_header β€” header of the partitions. that's it, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct smem_partition_header {
    u8 magic[4];
    __le16 host0;
    __le16 host1;
    __le32 size;
    __le32 offset_free_uncached;
    __le32 offset_free_cached;
    __le32 reserved[3];
 };

no cap, that's the whole struct. look at her. she's iconic πŸ‘‘


πŸ‘‘ Members πŸ‘‘

  • magic β€” the magic number, and it must be SMEM_PART_MAGIC. like, not optional. it's giving "the bouncer at the club checking your ID" fr fr πŸ’…
  • host0 β€” the first processor/host that has access to this partition 🫢
  • host1 β€” the second processor/host that gets access to this partition. so it's a two-besties situation, iykyk πŸ’œ
  • size β€” the size of the partition. that's the size. of the partition. periodt ✨
  • offset_free_uncached β€” the offset to the first free byte of uncached memory in this partition. so this is where the uncached memory's free space starts 🧚
  • offset_free_cached β€” the offset to the first free byte of cached memory in this partition. same energy but cached this time, we love a matching set πŸ“
  • reserved β€” reserved entries, for now. just sitting there. main character energy but no lines yet 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/soc/qcom/smem.c β€” go read it bestie, it's all in there πŸ“–

and the whole friend group of related pages:


ok that's the whole page, no skips, no cuts πŸ’€ every single member accounted for and every single SEE ALSO link present and correct. you're welcome 🫢

that's a wrap! this lil page lives under ./drivers/soc/qcom, dated October 2026, and it's struct smem_...ition_header(9) β€” mwah, slay, bye bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from