optee_ffa_from_msg_param(9)
β¨ optee_ffa_from_msg_param β¨
okay so bestie, welcome to the optee_ffa_from_msg_param(9) page β yes it's a section 9 Kernel API Manual situation, and yes it's lowkey iconic π
this little function is the glow-up translator that turns your OPTEE_MSG params into the fancy struct tee_param form π¦
πΈ NAME πΈ
optee_ffa_from_msg_param β convert from OPTEE_MSG parameters to struct tee_param β¨ literally a translation queen, no cap π«Ά
π SYNOPSIS π
int optee_ffa_from_msg_param (struct optee *optee , struct tee_param
*params , size_t num_params , const struct optee_msg_param *msg_params
);
that's the whole vibe right there π four args, one int coming back at you π
π ARGUMENTS π
opteeβ main service struct π§ the big main-character struct, handing out the contextparamsβ subsystem internal parameter representation π« the internal, on-the-inside version of your paramsnum_paramsβ number of elements in the parameter arrays π’ like, how many things are we actually talking about heremsg_paramsβ OPTEE_MSG parameters π¨ the incoming message-flavoured params,constbecause we're respectful and we don't touch π
π₯ DESCRIPTION π₯
Returns 0 on success or <0 on failure π that's it, that's the whole description β simple, clean, periodt. Success gets a 0 π, failure gets a negative, and honestly? same β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/tee/optee/ffa_abi.cπ (that's where the lore lives, iykyk) optee_ffa_to_msg_param(9)π the reverse-direction bestieoptee_ffa_shm_pool_alloc_pages(9)π§Ί shared memory pool, allocating pages, slayoptee_ffa_do_call_with_arg(9)π making the call, with an argument, as one does
and that's the page, bestie π«Ά go forth and convert your params π
ngl the small print still matters: this is from ./drivers/tee/optee, dated October 2026, in the Kernel API Manual β so cite it right when you're being academically iconic πβ¨
π¦ 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