readahead_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… readahead_index β€” like, the kernel API manual, but make it make sense πŸŽ€

okay bestie, so the header says readahead_index(9) and the manual is literally called Kernel API Manual β€” yes, the whole vibe. anyway. we're in the 9 section, this is kernel-API territory, and this little function is here to hand you a number. that's it. that's the whole gig. and honestly? she serves. πŸ’–


✨ NAME ✨

readahead_index β€” the index of the first page in this readahead request. that's the one. the index. of the first page. in this readahead request. no cap, it's exactly what it says on the tin 🫢


🌸 SYNOPSIS 🌸

pgoff_t readahead_index (const struct readahead_control *rac );

the way this signature is just sitting there being all pgoff_t and taking a const struct readahead_control * β€” like yes, const-correct king, we love to see it πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rac β€” the readahead request. that's it. that's the whole parameter list. she takes one (1) argument and she's not sorry about it πŸ’…

🌈 SEE ALSO 🌈

okay so this is the part where I hold your hand, because there is a lot of family here. first up, the file she lives in:

Kernel file ./include/linux/pagemap.h β€” that's home base, that's where the whole crew hangs out 🏠

and then the extended friend group, alphabetically-ish, all of them (9) pages, all of them worth a peek:

like, that's the whole group chat. read them, love them, cite them in your patch comments. iykyk πŸ’€βœ¨


lowkey a reminder: this page tells you what readahead_index gives you (the index of the first page of the request) and which request it reads it from (rac). it does not promise you anything else, bestie, so don't go inventing behaviour. πŸ™ˆ

and that's the page!! brought to you by ./include/linux πŸ“, dated October 2026 πŸ—“οΈ, filed under readahead_index(9) β€” mwah, iconic, no notes. πŸ’œπŸŽ€πŸ§š

πŸ“¦ where this page comes from