read_pages(9)
π NAME π
okay so bestie, welcome to the read_pages(9) page in the Kernel API Manual β this is the manual entry for read_pages, and it does exactly this: it starts IO for a contiguous range of allocated folios in the page cache. slay. β¨
πΈ SYNOPSIS πΈ
void read_pages (struct readahead_control *rac );
π ARGUMENTS π
racβ Readahead control. thatβs the whole vibe, bestie π«Ά
π¦ DESCRIPTION π¦
okay so when read_pages returns, it is guaranteed that all of the folios will have been processed or removed, so that readahead_count(rac) == 0.
but β and this is the important little plot twist β that does not imply that readahead_index(rac) will be updated to point to the end of the originally requested range. why? because, for example, the filesystem may expand the range upwards. iykyk π
β¨ SEE ALSO β¨
go read these too, bestie:
- Kernel file
./mm/readahead.c Readahead Overview(9)page_cache_ra_unbounded(9)readahead_expand(9)
mwah π β this page lives in ./mm, and itβs dated October 2026. go off, kernel bestie ππ¦
π¦ 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