qcom_smem_get_free_space(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– qcom_smem_get_free_space(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual, and honestly? it's a little cutie. we're talking about qcom_smem_get_free_space β€” say it with me, it's a mouthful but she's worth it 🫢


✨ NAME ✨

qcom_smem_get_free_space β€” retrieve amount of free space in a partition πŸ’…

✨ SYNOPSIS ✨

int qcom_smem_get_free_space (unsigned int host );

✨ ARGUMENTS ✨

  • host β€” the remote processor identifying a partition, or -1. yep, that's it, that's the whole argument, and she's carrying the entire vibe check of this function on her shoulders 😭

✨ DESCRIPTION ✨

so the tea is: this one's to be used by smem clients as a quick way to figure out whether any new allocations has been made. that's literally the whole point β€” a fast little peek, no cap. lowkey iconic that a function this small gets its own manpage πŸŽ€

✨ RETURN ✨

  • on success you get the number of available bytes ✨
  • on failure you get a negative errno πŸ’€ (so like, check it, bestie, don't just assume it worked)

✨ SEE ALSO ✨

the kernel file lives at ./drivers/soc/qcom/smem.c β€” go read her, she's long but she's the main character πŸ‘‘

and here's the whole friend group, all of them (9) pages, all of them valid:


ok that's the whole page!! nothing hidden, nothing skipped, every single struct accounted for 🌸

and finally, the cute little sign-off at the bottom of the page: this one comes from ./drivers/soc/qcom, dated October 2026, and yes she goes by qcom_smem_get_free_space(9) β€” remember her name, bestie πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from