qcom_tzmem_to_phys(9)
qcom_tzmem_to_phys(9) π
okay so bestie, welcome to the Kernel API Manual corner for qcom_tzmem_to_phys(9) β¨ this one is short, sweet, and literally about turning a TZ-memory virtual address into its physical address. no cap.
β¨ NAME β¨
qcom_tzmem_to_phys β map the virtual address of TZ memory to physical π
πΈ SYNOPSIS πΈ
phys_addr_t qcom_tzmem_to_phys (void *vaddr );
that's the whole signature, periodt.
π¦ ARGUMENTS π¦
vaddrβ the virtual address of memory allocated from a TZ memory pool π
π DESCRIPTION π
ok so this helper can be used in any context β no restrictions, bestie. But the address you pass in must point to memory allocated using qcom_tzmem_alloc. That's the vibe check: if it didn't come from qcom_tzmem_alloc, don't come here with it π.
π₯ RETURN π₯
It returns the physical address mapped from the virtual one, or 0 if the mapping failed π. That's it β 0 is the βnope, failedβ signal.
π SEE ALSO π
- Kernel file:
./drivers/firmware/qcom/qcom_tzmem.c qcom_tzmem_shm_bridge_create(9)qcom_tzmem_shm_bridge_delete(9)qcom_tzmem_pool_new(9)qcom_tzmem_pool_free(9)devm_qcom_tzmem_pool_new(9)qcom_tzmem_alloc(9)qcom_tzmem_free(9)
mwah π source/version ./drivers/firmware/qcom Β· October 2026 Β· qcom_tzmem_to_phys(9) π«Ά
π¦ 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