qcom_smem_get_free_space(9)
π 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:
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_virt_to_phys(9)qcom_smem_get_soc_id(9)qcom_smem_get_feature_code(9)
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
- 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