sgx_mark_page_reclaimable(9)
π sgx_mark_page_reclaimable β the kernel API manual, bestie edition (section 9, no cap)
Okay so real quick β this is sgx_mark_page_reclaimable(9), straight out of the Kernel API Manual, and it's honestly giving "one job, does it well." Itty bitty function, big main character energy. Let's get into it π
β¨ NAME β¨
sgx_mark_page_reclaimable β Mark a page as reclaimable π
That's it. That's the whole vibe. It marks a page. As reclaimable. Iconic, honestly.
πΈ SYNOPSIS πΈ
void sgx_mark_page_reclaimable (struct sgx_epc_page *page );
Returns void β nothing back, she just does the thing. Respect. π«Ά
π¦ ARGUMENTS π¦
pageβ an EPC page π (that's the one being marked, just so we're clear)
β DESCRIPTION β
So what actually happens? Two things, and they're both kind of a big deal:
- It marks a page as reclaimable π₯
- It adds that page to the active page list β¨
And the best part? You don't have to clean up after yourself β pages are automatically removed from the active list when they get freed. The kernel handles it. No manual un-listing, no fiddling, no stress. Periodt. π
π SEE ALSO π
Sibling functions and the kernel file where all the magic lives, ./arch/x86/kernel/cpu/sgx/main.c:
__sgx_alloc_epc_page(9)sgx_unmark_page_reclaimable(9)sgx_alloc_epc_page(9)sgx_free_epc_page(9)sgx_set_attribute(9)sgx_update_svn(9)
Go read sgx_unmark_page_reclaimable(9) next if you're the kind of person who needs the undo button. Balanced. π§
Alright bestie, that's the whole page β no filler, all facts, we ate and left absolutely no crumbs. π This little number lives in ./arch/x86/kernel/cpu/sgx and is dated October 2026 β mark your calendars, mwah ππ
π¦ 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