tee_shm_get_va(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tee_shm_get_va β€” a kernel API manual moment

okay bestie, welcome to the Kernel API Manual entry for tee_shm_get_va(9) β€” yes that (9) is the section number, we're in the deep kernel lore now 🧚✨


✨ NAME ✨

tee_shm_get_va β€” get the virtual address of a shared memory, plus an offset πŸŽ€


🌸 SYNOPSIS 🌸

void * tee_shm_get_va (struct tee_shm *shm , size_t offs );

like, that's the whole vibe. two args, one pointer out. simple. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • shm β€” the shared memory handle πŸ’– (your main character struct, fr)
  • offs β€” offset from the start of this shared memory. and here's the tea: it returns the virtual address of the shared memory + offs if offs is within the bounds of this shared memory, else an ERR_PTR 😭 so like… bounds check your girl, or you get an error pointer back. no cap.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in the kernel file ./include/linux/tee_drv.h:


ngl bestie, if you got here from a NULL-ish looking pointer, check offs against the size first β€” an ERR_PTR is not a real address, mwah πŸ’‹

and that's the page, periodt 🫢 this one lives under source path ./include/linux, dated October 2026, and honestly? she ate. go read your TEE headers, iykyk πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from