STRUCT TEE_CMD_CLOSE_SESSION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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