STRUCT OPTEE_SUPP(9)
π struct optee_supp(9) π
okay bestie, welcome to the Kernel API Manual β¨ β today's main character is struct optee_supp, and honestly? she's the group chat admin of the supplicant world π«Ά
πΈ NAME πΈ
struct optee_supp β the supplicant synchronization struct, no cap π
β¨ SYNOPSIS β¨
struct optee_supp {
struct mutex mutex;
struct tee_context *ctx;
int req_id;
struct list_head reqs;
struct idr idr;
struct completion reqs_c;
};
look at her. iconic. flawless. not a single field out of place π
π Members π
literally every single one, let's gooo π
mutexβ held while accessing content of this struct π like, do not touch the vibes while someone's already in here, fr frctxβ the context of current connected supplicant. if!NULLthe supplicant device is available for use, else busy. so basically: non-NULLmeans she's free and ready to hang,NULLmeans she's booked and busy, do not perceive her πreq_idβ current request id if supplicant is doing synchronous communication, else-1. yes,-1is the "no thoughts, head empty" state πreqsβ queued request not yet retrieved by supplicant π₯ sitting there in the queue like a text you haven't opened yetidrβ IDR holding all requests currently being processed by supplicant ποΈ every request she's actively working on lives here, periodtreqs_cβ completion used by supplicant when waiting for a request to be queued β³ she's literally just waiting by her phone for a request to show up, we've all been there π₯²
π¦ SEE ALSO π¦
Kernel file ./drivers/tee/optee/optee_private.h plus the whole friend group, all linked up π«Ά
struct optee_call_waiter(9)struct optee_call_queue(9)struct optee_pcpu(9)struct optee_smc(9)struct optee_ffa(9)struct optee_revision(9)struct optee_ops(9)struct optee(9)
lowkey important reminder bestie: thatctxfield being!NULLvsNULLis the whole availability vibe check. don't get it twisted π
and that's the page! π this masterpiece lives in ./drivers/tee/optee, dated October 2026, and it's serving struct optee_supp(9) energy from the Kernel API Manual. slay, bye πππ¦
π¦ 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