qcom_smem_virt_to_phys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– qcom_smem_virt_to_phys πŸ’– β€” Kernel API Manual, but make it cute

🌸 NAME 🌸

okay so qcom_smem_virt_to_phys β€” return the physical address associated with an smem item pointer (previously returned by qcom_smem_get()). Bestie, it’s literally a pointer-to-physical-address translator for SMEM items, and the pointer should be one that qcom_smem_get() gave you earlier. Periodt.

✨ SYNOPSIS ✨

phys_addr_t qcom_smem_virt_to_phys (void *p );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the virtual address to convert. That's the whole assignment; hand over the virtual address and let the function cook.

πŸ”₯ RETURN πŸ”₯

The return is the physical address of the SMEM item if found; otherwise it’s 0. Vibe check complete: found = physical address, not found = 0, no extra drama.

🌈 SEE ALSO 🌈

Kernel file ./drivers/soc/qcom/smem.c, plus these absolute icons:


Source corner: ./drivers/soc/qcom · date energy: October 2026 · page: qcom_smem_virt_to_phys(9) 🫢✨

πŸ“¦ where this page comes from