qcom_smem_bu...lock_by_host(9)
β¨ qcom_smem_bust_hwspin_lock_by_host β¨
okay so bestie, welcome to the Kernel API Manual β this one's a cute lil helper function from the kernel, and honestly? it's giving "emergency button energy" π
πΈ NAME πΈ
qcom_smem_bust_hwspin_lock_by_host β bust the smem hwspinlock for a host π«Ά
π¦ SYNOPSIS π¦
int qcom_smem_bust_hwspin_lock_by_host (unsigned int host );
π ARGUMENTS π
hostβ the remote processor id, fr fr. that's literally it, that's the whole argument π
π DESCRIPTION π
So what does it do? It busts the hwspin_lock for the given smem host id. Like, it just goes in and breaks that lock free. iconic behavior honestly π
This helper is intended for remoteproc drivers β the ones that manage remoteprocs which have an equivalent smem driver instance living in the remote firmware. yk how that goes π§
And here's the main character moment: drivers can force a release of the smem hwspin_lock if the rproc unexpectedly goes into a bad state π so if your remote processor is acting up and holding a lock hostage, this is the thing you call to be like "bestie, let it GO" π₯
β CONTEXT β
Process context. that's it. that's the vibe check β you're running in process context, no weird interrupt shenanigans π
π RETURN π
0on success π- otherwise negative errno (sad girl hours π)
π SEE ALSO π
- Kernel file
./drivers/soc/qcom/smem.c 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_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's a whole friend group of smem references right there β go read them all if you're obsessed with smem the way I am π
and that's the whole page bestie π this one came from ./drivers/soc/qcom in October 2026, and it's filed under qcom_smem_bu...lock_by_host(9) in the Kernel API Manual. slay, go bust some locks (responsibly) πβ¨
π¦ 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