STRUCT SMEM_INFO(9)
π struct smem_info(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in the kernel docs now, and yes this one is a struct, and yes it's giving main character energy. this page is literally about struct smem_info, aka the smem region info that's located after the table of contents. that's the whole vibe. no cap.
β¨ NAME β¨
struct smem_info β the smem region info that lives right after the table of contents π
πΈ SYNOPSIS πΈ
ok so here's the shape of her, character for character, don't touch anything:
struct smem_info {
u8 magic[4];
__le32 size;
__le32 base_addr;
__le32 reserved;
__le16 num_items;
};
look at that little layout. iconique. the indentation on that closing brace is doing its own thing and we respect it π«Ά
π¦ Members π¦
okay let's go through the squad one by one:
magicβ the magic number bestie, and it must beSMEM_INFO_MAGIC. no substitutions, this is the vibe check of the whole struct πsizeβ the size of the smem region. that's it. that's the girl. πΈbase_addrβ the base address of the smem region β¨reservedβ for now, a reserved entry. it's just sitting there, minding its business, lowkey chilling πnum_itemsβ the highest accepted item number π
π₯ SEE ALSO π₯
if you wanna keep reading (and you do, i know you do), the kernel file is ./drivers/soc/qcom/smem.c and it comes with a whole friend group:
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_header(9)struct smem_partition(9)struct smem_private_entry(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)
like, that is a full group chat. go say hi π§
and that's the whole page, bestie! this little cutie lives over in ./drivers/soc/qcom, the version stamp says October 2026, and the manual is struct smem_info(9). slay, go read some kernel source, i'm obsessed with you πβ
π¦ 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