STRUCT SMEM_PARTITION_HEADER(9)
π 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 beSMEM_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:
struct smem_proc_comm(9)struct smem_global_entry(9)struct smem_header(9)struct smem_ptable_entry(9)struct smem_ptable(9)struct smem_partition(9)struct smem_private_entry(9)struct smem_info(9)struct smem_region(9)struct qcom_smem(9)qcom_smem_bust_hwspin_lock_by_host(9)qcom_smem_is_available(9)qcom_smem_alloc(9)qcom_smem_get(9)qcom_smem_get_free_space(9)qcom_smem_virt_to_phys(9)qcom_smem_get_soc_id(9)qcom_smem_get_feature_code(9)
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
- 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