tee_shm_register_fd(9)
π tee_shm_register_fd β like, the TEE shared-memory-from-an-fd situation π
okay so bestie, welcome to the tee_shm_register_fd(9) page from the Kernel API Manual β¨ this one's short but it's important, so grab your iced coffee and let's get into it π
β¨ NAME β¨
tee_shm_register_fd β register shared memory from a file descriptor π¦
Like the name literally says it: you got an fd, you got shared memory, and this function is the matchmaker π
πΈ SYNOPSIS πΈ
struct tee_shm * tee_shm_register_fd (struct tee_context *ctx , int fd );
π ARGUMENTS π
ctxβ the context that allocates the shared memory π«Ά like, this is the one doing the allocating, no capfdβ the shared memory file descriptor reference π your ticket to the shared memory party
π DESCRIPTION π
so what does it do? it returns a pointer to struct tee_shm on success β iconic π β and ERR_PTR on failure π (yes, ERR_PTR, not NULL, she's built different, don't @ me)
π₯ SEE ALSO π₯
the whole friend group, fr fr π
- Kernel file
./include/linux/tee_drv.h struct tee_context(9)struct tee_shm(9)tee_shm_alloc_kernel_buf(9)tee_shm_register_kernel_buf(9)tee_shm_free(9)tee_shm_get_va(9)tee_shm_get_pa(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)
and that's the whole page, bestie π sign-off time: this one lives in ./include/linux, it's dated October 2026, and it's literally tee_shm_register_fd(9) β go register some shared memory, ily, bye πβ¨π§
π¦ 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