STRUCT SMEM_GLOBAL_ENTRY(9)
π struct smem_global_entry(9) π
okay bestie, welcome to the Kernel API Manual β¨ β today's main character is struct smem_global_entry, and honestly? she's the entry that lets you reference smem items on the heap π
πΈ NAME πΈ
struct smem_global_entry β entry to reference smem items on the heap π«Ά
β¨ SYNOPSIS β¨
struct smem_global_entry {
__le32 allocated;
__le32 offset;
__le32 size;
__le32 aux_base;
};
literally the whole struct, no cap π
four little __le32 fields and she's done.
π¦ Members π¦
allocatedβ a boolean vibe check π₯ it says whether this entry is actually used or just sitting there being decorative.offsetβ the offset to the allocated space, i.e. where the good stuff starts πsizeβ how big the allocated space is, and yes it's 8 byte aligned β she's organized like that πaux_baseβ the base address for the memory region this unit uses, or0for the default region π careful though: bits 0,1 are reserved π so don't be out here touching them.
π₯ SEE ALSO π₯
Kernel file ./drivers/soc/qcom/smem.c, plus the whole friend group: struct smem_proc_comm(9), struct smem_header(9), struct smem_ptable_entry(9), struct smem_ptable(9), struct smem_partition_header(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) π
that's the whole page bestie, go read the source and slay πβ¨
okay and for the cute sign-off: this one lives at ./drivers/soc/qcom πΈ, dated October 2026 π, and it's struct smem_global_entry(9) through and through β mwah π periodt π
π¦ 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