sgx_encl_remove_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sgx_encl_remove_pages β€” a Kernel API Manual moment (section 9, bestie)

okay so this is the sgx_encl_remove_pages(9) page, and yes we're reading kernel API docs for fun now, that's just who we are πŸ’–

✨ NAME ✨

sgx_encl_remove_pages β€” literally just Remove trimmed pages from SGX enclave. that's the whole vibe. trimmed pages? gone. removed. slay.

🌸 SYNOPSIS 🌸

long sgx_encl_remove_pages (struct sgx_encl *encl , struct
sgx_enclave_remove_pages *params );

like, copy that exactly bestie, every character matters, no cap 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • encl β€” the enclave that these pages belong to. it's giving "whose pages are these" energy. the pages lowkey live here πŸ’…
  • params β€” checked parameters from user, telling us which pages need to be removed. the word "checked" is doing so much work here and we love her for it ✨

πŸ”₯ RETURN πŸ”₯

  • 0 β€” Success. we ate. periodt πŸ‘‘
  • -errno β€” Otherwise. so like, anything else, and you're getting an errno back. not the win we wanted but honestly valid 😭

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./arch/x86/kernel/cpu/sgx/ioctl.c β€” go read her, she's iconic β€” plus the whole friend group:

ngl that's a squad 🌈 every single one of them listed, we don't skip the group chat members πŸ’œ


fr fr reminder: params is described as checked parameters from user, and we're keeping that word because it's load-bearing. don't come for me about it πŸ™ˆ

and that's the page!! brought to you by the source path ./arch/x86/kernel/cpu/sgx, dated October 2026, filed under sgx_encl_remove_pages(9) β€” mwah, stan kernel docs, bye bestie πŸ§šπŸ’–πŸŽ€

πŸ“¦ where this page comes from