optee_ffa_do_call_with_arg(9)
β¨ optee_ffa_do_call_with_arg β¨
okay bestie so we're in the Kernel API Manual today and the star of the show is optee_ffa_do_call_with_arg(9) β say that five times fast, i dare you π«Ά
π NAME π
optee_ffa_do_call_with_arg β literally does a FF-A call to go enter OP-TEE in the secure world π
π¦ SYNOPSIS π¦
int optee_ffa_do_call_with_arg (struct tee_context *ctx , struct tee_shm
*shm , u_int offs , bool system_thread );
π ARGUMENTS π
ctxβ the calling context, aka who's knocking on the door πͺshmβ the shared memory that's holding the message you wanna pass to secure world, it's giving little messenger bag πoffsβ offset of the message insideshm, so like where in the bag the note actually issystem_threadβtrueif the caller is requesting TEE system thread support, no cap, that's the whole vibe check on this one
πΈ DESCRIPTION πΈ
So it does a FF-A call to OP-TEE over in secure world, and it also handles any eventual resulting Remote Procedure Calls (RPC) that OP-TEE sends back at you. very main character, handles its own drama π
Returns the return code from FF-A β 0 is OK, everything's slaying π₯
π SEE ALSO π
Kernel file ./drivers/tee/optee/ffa_abi.c, plus the whole friend group:
okay that's the whole page bestie, go forth and make your FF-A calls π
signed, sealed, delivered from ./drivers/tee/optee, dated October 2026, and brought to you by the one and only optee_ffa_do_call_with_arg(9) β mwah π§π
π¦ 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