encls_failed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, you're looking at encls_failed(9) from the Kernel API Manual, and its whole personality is checking if an ENCLS function failed. that's it, that's the job. no cap. ✨

🌸 SYNOPSIS 🌸

bool encls_failed (int ret );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ret β€” the return value of an ENCLS function call. that's the value you're feeding in for inspection, bestie. πŸ”

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: encls_failed checks if an ENCLS function failed. it counts as failed when the function causes a fault that is not caused by an EPCM conflict, or when the function returns a non-zero value. literally those are the two ways this check says "yep, that failed." 😭

🌈 SEE ALSO 🌈

and if you wanna go deeper, those are the ones to peek at. iykyk πŸ’…

mwah πŸ’‹ β€” source/version: ./arch/x86/kernel/cpu/sgx; date: October 2026. that's the whole page, periodt. 🫢

πŸ“¦ where this page comes from