ENUM SGX_RETURN_CODE(9)
β¨ NAME β¨
okay bestie, welcome to the enum sgx_return_code(9) page from the Kernel API Manual π. This is literally enum sgx_return_code β the return code type for ENCLS, ENCLU and ENCLV. no cap, thatβs the whole name vibe.
πΈ SYNOPSIS πΈ
enum sgx_return_code {
SGX_EPC_PAGE_CONFLICT ,
SGX_NOT_TRACKED ,
SGX_CHILD_PRESENT ,
SGX_INVALID_EINITTOKEN ,
SGX_PAGE_NOT_MODIFIABLE ,
SGX_INSUFFICIENT_ENTROPY ,
SGX_NO_UPDATE ,
SGX_UNMASKED_EVENT
};
π Constants π
vibe check: these are the constants, and every single one matters π«Ά
SGX_EPC_PAGE_CONFLICTβ page is being written by other ENCLS function. πSGX_NOT_TRACKEDβ previous ETRACK's shootdown sequence has not been completed yet. πSGX_CHILD_PRESENTβ SECS has child pages present in the EPC. π¦SGX_INVALID_EINITTOKENβ EINITTOKEN is invalid and enclave signer's public key does not match IA32_SGXLEPUBKEYHASH. π¨SGX_PAGE_NOT_MODIFIABLEβ the EPC page cannot be modified because it is in the PENDING or MODIFIED state. πSGX_INSUFFICIENT_ENTROPYβ insufficient entropy in RNG. π²SGX_NO_UPDATEβ EUPDATESVN could not update the CPUSVN because the current SVN was not newer than CPUSVN. This is the most common error code returned by EUPDATESVN. πSGX_UNMASKED_EVENTβ an unmasked event, e.g.INTR, was received. π£
π¦ SEE ALSO π¦
okay, go peek at these too π
- Kernel file
./arch/x86/include/asm/sgx.h SGX_ENCLS_FAULT_FLAG(9)enum sgx_miscselect(9)enum sgx_attribute(9)struct sgx_secs(9)enum sgx_tcs_flags(9)struct sgx_tcs(9)struct sgx_pageinfo(9)enum sgx_page_type(9)enum sgx_secinfo_flags(9)struct sgx_secinfo(9)struct sgx_pcmd(9)struct sgx_sigstruct_header(9)struct sgx_sigstruct_body(9)struct sgx_sigstruct(9)
thatβs the whole manual page, bestie π«Ά it comes from ./arch/x86/include/asm, dated October 2026, and the page is enum sgx_return_code(9). periodt π
β¨
π¦ 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