STRUCT SGX_ENCLAVE_ADD_PAGES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 the SECINFO data. 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 🌟


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 is struct sgx_e...ve_add_pages(9). bye bestie, go handle those pages responsibly 🧚✨
πŸ“¦ where this page comes from