optee_ffa_do_call_with_arg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 inside shm, so like where in the bag the note actually is
  • system_thread β€” true if 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