nfs_page_create_from_folio(9)
π NAME π
nfs_page_create_from_folio(9) β create an NFS read/write request. Bestie, it's giving request-creation energy. β¨
Okay so this is the nfs_page_create_from_folio(9) page from the Kernel API Manual. Let's get into it, iykyk. π
π¦ SYNOPSIS π¦
struct nfs_page * nfs_page_create_from_folio (struct nfs_open_context
*ctx , struct folio *folio , unsigned int offset , unsigned int count );
π ARGUMENTS π
ctxβ open context to use. Your context, your vibe.folioβ folio to write. Yes, that folio.offsetβ starting offset within the folio for the write. Precision, periodt.countβ number of bytes to read/write. How many bytes we're moving.
π DESCRIPTION π
The page must be locked by the caller. This makes sure we never create two different requests for the same page. No duplicates, no chaos, we love to see it. π
User should ensure it is safe to sleep in this function. Like, check that before you snooze, bestie. π
π₯ SEE ALSO π₯
Kernel file ./fs/nfs/pagelist.c β plus the whole crew:
nfs_iocounter_wait(9)nfs_async_iocounter_wait(9)nfs_page_group_sync_on_bit_locked(9)nfs_page_create_from_page(9)nfs_unlock_request(9)nfs_unlock_and_release_request(9)nfs_free_request(9)nfs_pgio_data_destroy(9)nfs_pgio_rpcsetup(9)nfs_pgio_prepare(9)nfs_pgio_error(9)nfs_pgio_release(9)nfs_pageio_init(9)nfs_pgio_result(9)nfs_coalesce_size(9)nfs_pageio_do_add_request(9)__nfs_pageio_add_request(9)nfs_pageio_complete(9)nfs_pageio_cond_complete(9)
That's the whole page, bestie. Source/version: ./fs/nfs; date: October 2026; and yes, this icon is nfs_page_create_from_folio(9). π«Άπβ¨
π¦ 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