folio_attach_private(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the folio_attach_private(9) page in the Kernel API Manual, bestie! The name is literally folio_attach_private β€” attach private data to a folio. Slay.

✨ SYNOPSIS ✨

void folio_attach_private (struct folio *folio , void *data );

That's the whole signature, no cap ✨

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio you're attaching data to.
  • data β€” the data you're attaching to folio.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: attaching private data to a folio increments the page's reference count. And the data must be detached before the folio will be freed β€” like, that's the rule, periodt. πŸ’…

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/pagemap.h β€” here's the full iconic lineup:


mwah πŸ’‹ β€” source/version: ./include/linux, date: October 2026.

πŸ“¦ where this page comes from