STRUCT TEE_CMD_MAP_SHARED_MEM(9)
π STRUCT TEE_CMD_MAP_SHARED_MEM(9) π
okay so quick vibe check bestie: this is a Kernel API Manual page, section 9 β yep, the big-kid kernel section β¨ (the header up top literally reads struct tee_...p_shared_mem(9), that's just the name doing a little truncation moment, we move).
πΈ NAME πΈ
struct tee_cmd_map_shared_mem β the command that maps shared memory. it's giving "let me put this memory on the map" and honestly? iconic πΊοΈπ
β¨ SYNOPSIS β¨
struct tee_cmd_map_shared_mem {
u32 buf_id;
struct tee_sg_list sg_list;
};
no cap, that's the whole struct. two members. tiny but mighty π«Ά
π Members π
buf_idβ marked[out]bestie, so this is what comes back to you: the return buffer ID value πsg_listβ marked[in], so this is what you hand over: the list describing the memory to be mapped πβ¨
lowkey the[in]/[out]tags are the whole plot here βsg_listgoes in,buf_idcomes out. main character energy for each of them fr fr.
π¦ SEE ALSO π¦
Kernel file ./drivers/tee/amdtee/amdtee_if.h β and then the whole friend group:
struct memref(9)struct tee_sg_desc(9)struct tee_cmd_unmap_shared_mem(9)struct tee_cmd_load_ta(9)struct tee_cmd_unload_ta(9)struct tee_cmd_open_session(9)struct tee_cmd_close_session(9)struct tee_cmd_invoke_cmd(9)
like, that's the entire trusted-app lifecycle in one list and they ALL showed up to the group chat ππ
and that's the page!! π§ source/version teas: it lives in ./drivers/tee/amdtee, dated October 2026, and the whole thing is filed under struct tee_...p_shared_mem(9) β go map that memory, bestie, slay ππ
π¦ 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