devm_qcom_tzmem_pool_new(9)
π devm_qcom_tzmem_pool_new(9) β like, the managed era of TZ memory pools β¨
okay bestie, welcome to the Kernel API Manual π this one's short but she's important. and yes, the title is literally devm_qcom_tzmem_pool_new(9), we're not being subtle today π
πΈ NAME πΈ
devm_qcom_tzmem_pool_new β it's the managed variant of qcom_tzmem_pool_new(). that's it, that's the vibe. devm does the cleanup so you don't have to π«Ά
β¨ SYNOPSIS β¨
struct qcom_tzmem_pool * devm_qcom_tzmem_pool_new (struct device *dev ,
const struct qcom_tzmem_pool_config *config );
like look at her. two args, one return, zero drama π
π¦ ARGUMENTS π¦
devβ thestruct device *that's managing this resource. bestie's on cleanup duty, that's literally the whole point of devm π§configβ theconst struct qcom_tzmem_pool_config *pool configuration. all your settings go here, no cap β¨
π DESCRIPTION π
β οΈ real talk: must not be used in atomic context. that's the entire description. do not try it. do not pass go. it's giving "sleepy function" energy and atomic context is not the place for that π
bestie please. not in atomic context. i'm begging π«Ά
π RETURN π
you get back the address of the managed pool β¨ β¦or an ERR_PTR on failure π so like, check it. always check it. IS_ERR() is your friend fr fr π
π SEE ALSO π
the kernel file that lives here, in all her glory:
./drivers/firmware/qcom/qcom_tzmem.c
and the whole friend group:
qcom_tzmem_shm_bridge_create(9)qcom_tzmem_shm_bridge_delete(9)qcom_tzmem_pool_new(9)qcom_tzmem_pool_free(9)qcom_tzmem_alloc(9)qcom_tzmem_free(9)qcom_tzmem_to_phys(9)
they all ate, honestly π
and that's the page, bestie π sourced from ./drivers/firmware/qcom, dated October 2026, closing out as devm_qcom_tzmem_pool_new(9) like the icon she is β go forth and manage your memory pools 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