nfs_page_to_folio(9)
π nfs_page_to_folio(9) β Kernel API Manual π¦
okay so bestie, welcome to the glow-up era of nfs_page_to_folio β that's the function name, and the manual it lives in is the Kernel API Manual, section 9 (kernel-space, my beloved π). this one's short and sweet and honestly it ate, let's get into it β¨
πΈ NAME πΈ
nfs_page_to_folio β Retrieve a struct folio for the request π
like, it gets you the folio. for the request. that's the whole vibe check. no cap.
β¨ SYNOPSIS β¨
struct folio * nfs_page_to_folio (const struct nfs_page *req );
literally the whole signature, copied exactly, don't come for me π β it returns a struct folio * and takes a const struct nfs_page * named req. iconic behavior.
π ARGUMENTS π
reqβ pointer to astruct nfs_pageπ«Ά that's it, that's the argument. one (1) pointer. she's low maintenance.
π DESCRIPTION π
okay so here's the tea β β if a folio was assigned to req, then return it. otherwise return NULL.
that's the entire plot. no subplot, no twist, no third act π. either the folio's there and you get it back, or it isn't and you get NULL and you gotta deal with that yourself. know the difference, bestie, it's giving "check your return value" main character energy π
not me emphasizing this but fr fr: NULL is a real possible return here, so don't go dereferencing it and acting surprised π
π§ SEE ALSO π§
- Kernel file
./include/linux/nfs_page.hβ that's where the header lives, go read it, iykyk π nfs_page_to_page(9)nfs_page_to_inode(9)nfs_page_max_length(9)nfs_list_add_request(9)nfs_list_move_request(9)nfs_list_remove_request(9)
the whole friend group honestly π all of them are in section 9, all of them are worth a look, go say hi πΈ
and that's the page!! sourced from ./include/linux, dated October 2026 β slay, bye bestie, go convert some pages to folios responsibly π
π
π¦ 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