tee_shm_get_pa(9)
π tee_shm_get_pa(9) β like, the Kernel API Manual glow-up
okay so bestie, welcome to tee_shm_get_pa(9) β yes, that's the manual page name, section 9, from the Kernel API Manual, and no I will not be normal about it π«Ά
β¨ NAME β¨
tee_shm_get_pa β literally just: get the physical address of a shared memory, plus an offset. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int tee_shm_get_pa (struct tee_shm *shm , size_t offs , phys_addr_t *pa
);
she takes three things and gives you back an int. short, sweet, iconic π
π¦ ARGUMENTS π¦
shmβ the shared memory handle, aka your main character. it's astruct tee_shm *.offsβ offset from the start of this shared memory. asize_t, bestie, so keep it unsigned and keep it sensible πpaβ the physical address to return. it's aphys_addr_t *, so you're handing over a pointer and letting her fill it in. she returns0ifoffsis within the bounds of this shared memory β and if it's not, you get an error code instead. vibe check failed, sorry π
π SEE ALSO π
so here's the whole friend group β the kernel file ./include/linux/tee_drv.h, plus:
struct tee_context(9)struct tee_shm(9)tee_shm_alloc_kernel_buf(9)tee_shm_register_kernel_buf(9)tee_shm_register_fd(9)tee_shm_free(9)tee_shm_get_va(9)tee_shm_get_size(9)tee_shm_get_pages(9)tee_shm_get_page_offset(9)tee_client_open_context(9)tee_client_close_context(9)tee_client_get_version(9)tee_client_open_session(9)tee_client_close_session(9)tee_client_system_session(9)tee_client_invoke_func(9)tee_client_cancel_req(9)struct tee_client_device(9)struct tee_client_driver(9)
like, the entire roster. go read them, iykyk π
fr fr the only thing you're getting out of this page is a physical address + offset sanity check. no cap. don't invent extra behaviour, she didn't say that π
sign-off time π§ this little masterpiece lives under ./include/linux, dated October 2026, and it's filed as tee_shm_get_pa(9). slay, goodbye, go read your headers πβ¨
π¦ 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