STRUCT TEE_CMD_CLOSE_SESSION(9)
π struct tee_cmd_close_session(9) π
okay so this is a page from the Kernel API Manual bestie, and it's all about struct tee_cmd_close_session β literally the command struct you use to call TA_CloseSessionEntryPoint() inside a TA. iykyk π
β¨ NAME β¨
struct tee_cmd_close_session β the command that gets TA_CloseSessionEntryPoint() called inside the TA. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
struct tee_cmd_close_session {
u32 ta_handle;
u32 session_info;
};
look at her. two fields. flawless. no notes π₯
π¦ Members π¦
ta_handleβ[in]the handle of the loaded TA. yep, the one you already loaded. she's required, no cap πsession_infoβ[in]a pointer to the TA-allocated session data. it's giving "the TA made this, you just hold onto it" π«Ά
π SEE ALSO π
kernel file ./drivers/tee/amdtee/amdtee_if.h β go read the source, it ate β¨
and the whole friend group of structs:
struct memref(9)struct tee_sg_desc(9)struct tee_cmd_map_shared_mem(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_invoke_cmd(9)
like a whole little squad of TEE command structs, main character energy each one π
ok real talk bestie: this page gives you the struct and the two [in] fields, and that's genuinely all it says. don't go inventing extra fields, i'm begging π
so yeah, ./drivers/tee/amdtee, October 2026 β that's when this lil page was born, and honestly? iconic. bye bestie, go close some sessions πππ¦β
π¦ 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