qcom_tzmem_pool_new(9)
β¨ qcom_tzmem_pool_new β¨
okay so bestie, we're in the Kernel API Manual today and this one is a kernel function β a real one, from the Qualcomm TrustZone memory corner of the tree π«Ά stay with me, it's actually so good.
π NAME π
qcom_tzmem_pool_new β literally just creates a new TZ memory pool. that's it, that's the whole job, and it does it iconically π
πΈ SYNOPSIS πΈ
struct qcom_tzmem_pool * qcom_tzmem_pool_new (const struct qcom_tzmem_pool_config *config );
so you hand it a config and it gives you back a struct qcom_tzmem_pool *. yes queen, pointer to a pool β¨
π ARGUMENTS π
configβ the pool configuration. it's aconst struct qcom_tzmem_pool_config *, aka the vibe spec for your new pool. tell it what you want and it'll build it π¦
π§ DESCRIPTION π§
okay so what this does: it creates a new pool of memory suitable for sharing with the TrustZone. that's the whole tea β β you're making a memory pool that's allowed to hang out with TrustZone, which is a whole separate secure world, so like... it's giving main character energy but with security implications, iykyk.
β οΈ big warning bestie, no cap: it must not be used in atomic context. like, do not. that's a hard no. don't try it, don't be cute about it, don't "just this once" it. π
π₯ RETURN π₯
you get back either:
- the new memory pool address π (slay, it worked)
- or
ERR_PTRon error π (check it, always check it,IS_ERR()is your bestie)
π SEE ALSO π
- Kernel file
./drivers/firmware/qcom/qcom_tzmem.cβ the source, the mothership, go read it π qcom_tzmem_shm_bridge_create(9)qcom_tzmem_shm_bridge_delete(9)qcom_tzmem_pool_free(9)devm_qcom_tzmem_pool_new(9)qcom_tzmem_alloc(9)qcom_tzmem_free(9)qcom_tzmem_to_phys(9)
okay that's the whole page, you ate that π
this one lives under ./drivers/firmware/qcom, it's from October 2026, and it's part of the Kernel API Manual (the version-y footer situation). go forth and pool responsibly, 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