tee_shm_get_pa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct tee_shm *.
  • offs β€” offset from the start of this shared memory. a size_t, bestie, so keep it unsigned and keep it sensible 🌈
  • pa β€” the physical address to return. it's a phys_addr_t *, so you're handing over a pointer and letting her fill it in. she returns 0 if offs is 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:

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