STRUCT OPTEE_SMC(9)
π struct optee_smc(9) π
okay so bestie, welcome to the Kernel API Manual β the struct we're doing today is literally the main character of optee smc communication energy β¨ (that's what the name means, no cap: optee smc communication struct π).
β¨ SYNOPSIS β¨
here's the whole vibe, copy it exactly, don't touch a single character π:
struct optee_smc {
optee_invoke_fn *invoke_fn;
void *memremaped_shm;
u32 sec_caps;
unsigned int notif_irq;
struct optee_pcpu __percpu *optee_pcpu;
struct workqueue_struct *notif_pcpu_wq;
struct work_struct notif_pcpu_work;
unsigned int notif_cpuhp_state;
};
πΈ Members πΈ
one by one, bestie, we're going through all of them π:
invoke_fnβ the handler function that invokes the secure monitor. it's giving "you want to talk to the secure world? talk to her" πmemremaped_shmβ the virtual address of memory in the shared memory pool π§sec_capsβ secure world capabilities, defined byOPTEE_SMC_SEC_CAP_*over inoptee_smc.h. that's the capability vibe check βnotif_irqβ the interrupt used as async notification by OP-TEE, or0if there isn't one π«Άoptee_pcpuβ per_cpu optee instance for per cpu work, orNULL. so either a whole per-cpu moment or absolutely nothing, she contains multitudes πnotif_pcpu_wqβ workqueue for per cpu asynchronous notification, orNULLπnotif_pcpu_workβ work for per cpu asynchronous notification βnotif_cpuhp_stateβ CPU hotplug state assigned for pcpu interrupt management π₯
π¦ SEE ALSO π¦
go read these next, i'm obsessed with all of them fr fr:
- Kernel file
./drivers/tee/optee/optee_private.hβstruct optee_call_waiter(9) struct optee_call_queue(9)struct optee_supp(9)struct optee_pcpu(9)struct optee_ffa(9)struct optee_revision(9)struct optee_ops(9)struct optee(9)
and that's the whole page bestie!! this manual came straight out of ./drivers/tee/optee, dated October 2026, and it's titled struct optee_smc(9) πβ¨ mwah, slay, go read the source π
π¦ 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