netfs_alloc_folioq_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ netfs_alloc_folioq_buffer(9) πŸ¦‹

Okay bestie, welcome to the Kernel API Manual β€” this page is literally all about netfs_alloc_folioq_buffer(9), aka the function that allocates buffer space into a folio queue. It’s giving kernel-core main character energy, and we’re gonna read it together. Periodt. πŸ’–


✨ NAME ✨

netfs_alloc_folioq_buffer β€” Allocate buffer space into a folio queue. That’s the vibe check, and it passed. 🌈


πŸŽ€ SYNOPSIS πŸŽ€

The exact signature is right here, no cap:

int netfs_alloc_folioq_buffer (struct address_space *mapping , struct
       folio_queue **_buffer , size_t *_cur_size , ssize_t size , gfp_t gfp );

πŸ’… ARGUMENTS πŸ’…

  • mapping β€” Address space to set on the folio (or NULL). Simple as that, bestie.
  • _buffer β€” Pointer to the folio queue to add to. It may point to a NULL; it gets updated. Not me loving an in-place update 😭
  • _cur_size β€” Current size of the buffer. And yes, it’s updated too. ✨
  • size β€” Target size of the buffer.
  • gfp β€” The allocation constraints. Respect the constraints, fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

Go peek at these besties, iykyk:


And that’s the page, bestie 🫢 This one comes from ./fs/netfs, dated October 2026, and its manual tag is netfs_alloc_folioq_buffer(9). Iconic footer behavior, honestly. Bye πŸ’…πŸ’–

πŸ“¦ where this page comes from