qcom_smem_virt_to_phys(9)
π 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:
struct smem_proc_comm(9)struct smem_global_entry(9)struct smem_header(9)struct smem_ptable_entry(9)struct smem_ptable(9)struct smem_partition_header(9)struct smem_partition(9)struct smem_private_entry(9)struct smem_info(9)struct smem_region(9)struct qcom_smem(9)qcom_smem_bust_hwspin_lock_by_host(9)qcom_smem_is_available(9)qcom_smem_alloc(9)qcom_smem_get(9)qcom_smem_get_free_space(9)qcom_smem_get_soc_id(9)qcom_smem_get_feature_code(9)
Source corner: ./drivers/soc/qcom Β· date energy: October 2026 Β· page: qcom_smem_virt_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