netfs_unbuffered_write_iter(9)
β¨ 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β aniov_iterwith 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_rangefailed 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms