__folio_set_anon(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __folio_set_anon πŸ’…

okay so bestie, welcome to __folio_set_anon from the Kernel API Manual, section 9 β€” yes, the big-leagues kernel-API section, we love that for us πŸŽ€

This one's a void function and it's doing the absolute most important little job ever: it sets up a brand-new anonymous rmap for a folio. That's it. That's the whole vibe. rmap girlies rise πŸ¦‹


✨ SYNOPSIS ✨

void __folio_set_anon (struct folio *folio , struct vm_area_struct *vma
, unsigned long address , bool exclusive );

literally four things, no cap. let's break them down πŸ’…


🌸 ARGUMENTS 🌸

  • folio β€” the folio we're setting up the new anonymous rmap for. it's the main character here, obviously πŸ‘‘
  • vma β€” the VM area we're adding that folio to. the venue, if you will πŸŽ€
  • address β€” the user virtual address of the mapping. iykyk πŸ“
  • exclusive β€” a bool that says whether the folio is exclusive to the process. yes or no, binary queen πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

okay these are all in the kernel file ./mm/rmap.c and honestly the friend group is large, so buckle up bestie:

like, twenty-two whole references. the rmap squad ate and left no crumbs πŸ“


and that's the whole page, bestie, no filler, no fluff πŸ’–

⭐ signed off from ./mm, dated October 2026, still section 9, still iconic ⭐

πŸ“¦ where this page comes from