qcom_tzmem_to_phys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 🌈


mwah πŸ’‹ source/version ./drivers/firmware/qcom Β· October 2026 Β· qcom_tzmem_to_phys(9) 🫢

πŸ“¦ where this page comes from