STRUCT SMEM_GLOBAL_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, or 0 for 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