__encls_ret_N(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __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 number
  • inputs β€” 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 🌈

  • 0 on success
  • SGX error code on failure

πŸ¦‹ SEE ALSO πŸ¦‹


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