sgx_mark_page_reclaimable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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:


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