qcom_smem_get_soc_id(9)
π qcom_smem_get_soc_id(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes, the real one, and yes, we're about to make a tiny function feel like main character energy. This one's called qcom_smem_get_soc_id and honestly? She's short, she's sweet, she gets the job done π
πΈ NAME πΈ
qcom_smem_get_soc_id β literally just returns the SoC ID π
no cap, that's the whole vibe.
β¨ SYNOPSIS β¨
int qcom_smem_get_soc_id (u32 *id );
look at her. one argument. zero drama. iconic π«Ά
π¦ ARGUMENTS π¦
idβ this is the lil pointer where the SoC ID gets dropped off. On success, we return the SoC ID right here π so like, don't forget to actually pass a valid one, bestie π
π₯ DESCRIPTION π₯
so the way this works is: we look up the SoC ID from the HW/SW build ID, and then we return it. that's it. that's the function. lowkey obsessed with how straightforward she is π
β RETURN β
0on success β slay, we ate, everything went great π- negative errno on failure β not slay, something went wrong, check your errno π
π SEE ALSO π
the kernel file this lives in is ./drivers/soc/qcom/smem.c β go read it, iykyk π§
and here's the whole friend group, fr fr:
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_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_feature_code(9)
bestie reminder: the docs live under ./drivers/soc/qcom, and this page is dated October 2026 β so yeah, she's from the future (or at least the calendar says so) πβ¨
k bye, go get that SoC ID π ππ
π¦ 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