sgx_free_epc_page(9)
sgx_free_epc_page(9) π
okay bestie, welcome to the Kernel API Manual entry for sgx_free_epc_page β yes, we're in kernel-land and this one is short but important. β¨
πΈ NAME πΈ
sgx_free_epc_page β Free an EPC page π«Ά
β¨ SYNOPSIS β¨
void sgx_free_epc_page (struct sgx_epc_page *page );
π ARGUMENTS π
pageβ an EPC page. that's the one you're handing over, bestie π
π¦ DESCRIPTION π¦
okay so what this does: it puts the EPC page back onto the list of free pages. simple. iconic. π₯
but listen: it's the caller's responsibility to make sure that the page is in an uninitialized state. that means you have to do EREMOVE, EWB, or whatever operation is necessary before calling this function. no cap. do the cleanup first, then call it. π
π SEE ALSO π
Kernel file ./arch/x86/kernel/cpu/sgx/main.c β go peek, iykyk π
__sgx_alloc_epc_page(9)sgx_mark_page_reclaimable(9)sgx_unmark_page_reclaimable(9)sgx_alloc_epc_page(9)sgx_set_attribute(9)sgx_update_svn(9)
mwah π this page lives under ./arch/x86/kernel/cpu/sgx, and it's dated October 2026 β bye bestie πβ¨
π¦ 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