qcom_smem_get_soc_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 ⭐

  • 0 on 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:


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