netfs_unbuffered_write_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the netfs_unbuffered_write_iter(9) page in the Kernel API Manual β€” one-liner: Unbuffered write to a file. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

ssize_t netfs_unbuffered_write_iter (struct kiocb *iocb , struct
iov_iter *from );

πŸ’… ARGUMENTS πŸ’…

  • iocb β€” the IO state structure, aka the whole state-of-the-IO situation.
  • from β€” an iov_iter with the data to write. the data. the contents. the material. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function does an unbuffered write to a file β€” it writes the data directly to the server and does not lodge the data in the pagecache. no pagecache sleepover, no caching situation, periodt. ✨

πŸŽ€ RETURN πŸŽ€

  • a negative error code if no data has been written at all or vfs_fsync_range failed for a synchronous write. yeah. that kind of day. 😭
  • the number of bytes written, even for truncated writes β€” yes, even then, bestie. it still reports bytes. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./fs/netfs/direct_write.c β€” go peek, iykyk. πŸ¦‹

source/version: ./fs/netfs Β· date: October 2026 Β· page: netfs_unbuffered_write_iter(9) β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from