netfs_read_folio(9)
β¨ netfs_read_folio(9) β¨
okay so this is a page from the Kernel API Manual, and itβs literally all about netfs_read_folio β the helper bestie for managing a read_folio request. π«Άπ
πΈ NAME πΈ
netfs_read_folio β helper to manage a read_folio request. periodt. π
π¦ SYNOPSIS π¦
int netfs_read_folio (struct file *file , struct folio *folio );
π ARGUMENTS π
fileβ the file to read from, bestie. πfolioβ the folio to read. πβ¨
π DESCRIPTION π
so the vibe is: fulfil a read_folio request by drawing data from the cache if possible, or from the netfs if not. β¨ Thatβs the whole assignment.
Space beyond the EOF is zero-filled. π«§ And yes, multiple I/O requests from different sources will get munged together β thatβs canon, not a typo. ππ
The calling netfs must initialise a netfs context contiguous to the vfs inode before calling this. no skipping that step, bestie. ππ
This is usable whether or not caching is enabled. slay. π₯
π SEE ALSO π
- Kernel file
./fs/netfs/buffered_read.c netfs_readahead(9)netfs_write_begin(9)netfs_buffered_read_iter(9)netfs_file_read_iter(9)
and thatβs the whole page! π this iconic little entry is from source/version ./fs/netfs, dated October 2026. 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