__encls_ret_N(9)
π __encls_ret_N(9) π
okay so welcome to the Kernel API Manual, bestie β todayβs main character is __encls_ret_N, and yes the name is giving βunderscores go brrrβ π
πΈ NAME πΈ
__encls_ret_N β encode an ENCLS function that returns an error code in EAX
β¨ SYNOPSIS β¨
__encls_ret_N (rax , inputs... );
π«Ά ARGUMENTS π«Ά
raxβ function numberinputsβ asm inputs for the function
π DESCRIPTION π
So this one emits assembly for an ENCLS function that returns an error code β EREMOVE is the example, iykyk. And because SGX isnβt complex enough as it is, functions that return an error code also modify flags. Like, of course they do π
π RETURN π
0on success- SGX error code on failure
π¦ SEE ALSO π¦
- Kernel file
./arch/x86/kernel/cpu/sgx/encls.h encls_failed(9)__encls_N(9)
mwah π xoxo β this cutie lives in ./arch/x86/kernel/cpu/sgx, dated October 2026, and the page is __encls_ret_N(9) π«Άβ¨
π¦ 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