STRUCT TEE_CMD_OPEN_SESSION(9)
π struct tee_cmd_open_session(9) π
okay bestie, so this is a page from the Kernel API Manual and it's literally all about struct tee_cmd_open_session β the command you send to call TA_OpenSessionEntryPoint in the TA. yes that's a whole lot of capital letters, but stay with me, it slaps. π
β¨ NAME β¨
struct tee_cmd_open_session β the command to call TA_OpenSessionEntryPoint in TA. that's it, that's the vibe. π₯
πΈ SYNOPSIS πΈ
here's the struct in all her glory, no cap, copy it exact:
struct tee_cmd_open_session {
u32 ta_handle;
u32 session_info;
struct tee_operation op;
u32 return_origin;
};
π¦ Members π¦
okay so let's meet the members, they're all main characters:
ta_handleβ [in] the handle of the loaded TA. like, the TA you already loaded, she's here, this is her ticket π«session_infoβ [out] a pointer to the TA allocated session data. the TA's handing you her session tea πopβ [in/out] the operation parameters. going in, coming out, living her best bidirectional life πreturn_originβ [out] the origin of the return code after TEE processing. so when it comes back, this tells you where that return code came from, iykyk π
π SEE ALSO π
go check out the kernel file ./drivers/tee/amdtee/amdtee_if.h β that's the home base π β and then the whole friend group:
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_close_session(9)struct tee_cmd_invoke_cmd(9)
they all ate, honestly π
fr fr bestie, this is the October 2026 edition, brought to you by the fine people at ./drivers/tee/amdtee β so go forth and open those sessions, ily, mwah πβ¨π
π¦ 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