iov_iter_folio_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iov_iter_folio_queue(9) β€” the Kernel API Manual glow-up πŸ’–

okay bestie, so this one lives in the Kernel API Manual, and it's literally the function that sets up an I/O iterator to vibe with the folios in a folio queue. no cap, it's giving "plumbing but make it cute" 🫢


✨ NAME ✨

iov_iter_folio_queue β€” Initialise an I/O iterator to use the folios in a folio queue

like… that's the whole job. it initialises. it iterates. it folio-queues. iconic behaviour honestly πŸ’…


🌸 SYNOPSIS 🌸

void iov_iter_folio_queue (struct iov_iter *i , unsigned int direction ,
const struct folio_queue *folioq , unsigned int first_slot , unsigned
int offset , size_t count );

she takes six arguments and returns void, because she's a doer, not a reporter πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” The iterator to initialise. that's your main character right there, bestie, she's getting set up ✨
  • direction β€” The direction of the transfer. which way are we going? that way. πŸ‘‰
  • folioq β€” The starting point in the folio queue. your entry point, your launchpad, your moment πŸš€
  • first_slot β€” The first slot in the folio queue to use. not the second slot. not the third. the first one πŸ₯‡
  • offset β€” The offset into the folio in the first slot to start at. we're not starting at zero, we're starting precisely where we're told, and honestly? respect 🫑
  • count β€” The size of the I/O buffer in bytes. how much I/O is in this I/O buffer, measured in bytes, as one does πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” this sets up an I/O iterator to either draw data out of the pages attached to an inode or to inject data into those pages. two directions, one iterator, endless possibilities, we love a versatile queen πŸ‘‘

⚠️ the important part, do not skip this, I'm serious ⚠️ The pages *must* be prevented from evaporation, either by taking a ref on them or locking them by the caller. "must" with asterisks around it, bestie. the manpage is yelling. do not let those pages evaporate, or it's going to be a whole situation 😭 πŸ’€

🌈 SEE ALSO 🌈

go read the whole friend group, they're all slaying in their own lanes πŸ’–


and that's the page!! brought to you by the fine folks over at ./lib, dated October 2026 β€” mark your calendars bestie, mwah πŸ’‹ πŸŽ€ bye!!

πŸ“¦ where this page comes from