tee_client_close_session(9)
π tee_client_close_session(9) π
okay so we're in the Kernel API Manual today bestie, and this little function is about closing a session to a Trusted Application. yes, that kind of Trusted Application. no cap, it's a whole thing. π«Ά
β¨ NAME β¨
tee_client_close_session β close a session to a Trusted Application πΈ
like, the goodbye function. the "we're done here" function. main character exit energy. π
π SYNOPSIS π
int tee_client_close_session (struct tee_context *ctx , u32 session );
literally that's it. two args and a dream. β¨
π¦ ARGUMENTS π¦
ctxβ the TEE Context, aka the whole vibe you're operating in πsessionβ the Session id, aka which session you're saying bye to π
π₯ DESCRIPTION π₯
okay so here's the tea: it returns < 0 on error, else 0.
and ngl, the important part β regardless of what it returns, the session will not be valid after this function has returned. like, gone gone. not coming back. it's giving "the session has left the group chat" ππ
so don't go using that session id afterwards thinking it's still gonna slay. it will not. periodt. π«Ά
π SEE ALSO π
Kernel file ./include/linux/tee_drv.h β and honestly the whole friend group:
struct tee_context(9)struct tee_shm(9)tee_shm_alloc_kernel_buf(9)tee_shm_register_kernel_buf(9)tee_shm_register_fd(9)tee_shm_free(9)tee_shm_get_va(9)tee_shm_get_pa(9)tee_shm_get_size(9)tee_shm_get_pages(9)tee_shm_get_page_offset(9)tee_client_open_context(9)tee_client_close_context(9)tee_client_get_version(9)tee_client_open_session(9)tee_client_system_session(9)tee_client_invoke_func(9)tee_client_cancel_req(9)struct tee_client_device(9)struct tee_client_driver(9)
like yes that's a lot of cross-references but they're all iconic, i don't make the rules π
ok that's the whole page bestie, no notes, go close that session π§ββοΈβ¨
anyway this masterpiece lives in ./include/linux and it's dated October 2026, so jot that down in your calendar and stan forever ππ β
π¦ 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