STRUCT AMDTEE_SESSION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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