STRUCT AMDTEE_SESSION(9)
π struct amdtee_session(9) β Kernel API Manual π
πΈ NAME πΈ
struct amdtee_session β Trusted Application (TA) session related information. That's the whole vibe, bestie: it's the struct holding all the TA session tea ββ¨.
β¨ SYNOPSIS β¨
struct amdtee_session {
struct list_head list_node;
u32 ta_handle;
struct kref refcount;
u32 session_info[TEE_NUM_SESSIONS];
unsigned long sess_mask[BITS_TO_LONGS( TEE_NUM_SESSIONS)];
spinlock_t lock;
};
π«Ά Members π«Ά
ta_handleβ handle to Trusted Application (TA) loaded in TEE environment. It's giving the TA's little name tag in TEE world πͺͺ.refcountβ counter to keep track of sessions opened for the TA instance. Literally keeping count, no cap π’.session_infoβ an array pointing to TA allocated session data. Think of it as the stash of session data the TA is pointing at π¦.sess_maskβ session usage bit-mask. If a particular bit is set, then the correspondingsession_infoentry is in use or valid. Bit set = that slot is valid, periodt π π₯.
π Description π
Session structure is updated on open_session, and this information is used for subsequent operations with the Trusted Application. So open a session, update the struct, then keep that info around for what comes next β iconic bookkeeping energy πβ¨.
Lowkey important: this is the session info the later operations rely on, so don't sleep on it π«Ά.
π¦ SEE ALSO π¦
- Kernel file
./drivers/tee/amdtee/amdtee_private.h struct amdtee(9)struct amdtee_context_data(9)struct amdtee_ta_data(9)set_session_id(9)
Cute sign-off: brought to you by the ./drivers/tee/amdtee source, in the Kernel API Manual version, dated October 2026, and it's all about struct amdtee_session(9) ππ
π¦ 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