STRUCT SGX_ENCLAVE_ADD_PAGES(9)
πΈ struct sgx_enclave_add_pages(9) πΈ
hey bestie, welcome to the Kernel API Manual π this one is short, sweet, and extremely specific: itβs all about the parameter structure for the %SGX_IOC_ENCLAVE_ADD_PAGE ioctl. iconic behavior, honestly.
β¨ NAME β¨
struct sgx_enclave_add_pages β literally the parameter structure for the %SGX_IOC_ENCLAVE_ADD_PAGE ioctl. thatβs the whole name, no cap π«Ά
π¦ SYNOPSIS π¦
struct sgx_enclave_add_pages {
__u64 src;
__u64 offset;
__u64 length;
__u64 secinfo;
__u64 flags;
__u64 count;
};
every single field is a __u64, bestie. we love a consistent little struct π
π Members π
srcβ the start address for the page data. like, where the data begins, periodt.offsetβ the starting page offset. the offset at the start, iykyk.lengthβ the length of the data, and it is a multiple of the page size. yes, that detail matters πsecinfoβ the address for theSECINFOdata. not the data itself, the address, okay? πflagsβ the page control flags. very flags, very control.countβ the number of bytes added, also a multiple of the page size. matching page-size multiples, we love to see it β¨
π SEE ALSO π
- Kernel file
./arch/x86/include/uapi/asm/sgx.h enum sgx_page_flags(9)struct sgx_enclave_create(9)struct sgx_enclave_init(9)struct sgx_enclave_provision(9)struct sgx_enclave_restrict_permissions(9)struct sgx_enclave_modify_types(9)struct sgx_enclave_remove_pages(9)sgx_enclave_user_handler_t(9)struct sgx_enclave_run(9)vdso_sgx_enter_enclave_t(9)
okay thatβs the whole vibe π this pageβs source/version line points at./arch/x86/include/uapi/asm, the date is October 2026, and the footer title isstruct sgx_e...ve_add_pages(9). bye bestie, go handle those pages responsibly π§β¨
π¦ 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