nfs_pageio_init(9)
π« NAME π«
nfs_pageio_init β bestie, this is the function that initialises a page io descriptor, no cap β¨
π¦ SYNOPSIS π¦
void nfs_pageio_init (struct nfs_pageio_descriptor *desc , struct inode
*inode , const struct nfs_pageio_ops *pg_ops , const struct
nfs_pgio_completion_ops *compl_ops , const struct nfs_rw_ops *rw_ops ,
size_t bsize , int io_flags );
okay so it returns void (she gives nothing back, she just sets things up π
) and she takes seven whole arguments, which is giving "main character with a full entourage" energy. Let's meet the cast π
π₯ ARGUMENTS π₯
descβ pointer to descriptor. this is the pageio descriptor you're setting up, the whole reason we're here πΈinodeβ pointer to inode. the inode in question, front and center.pg_opsβ pointer to pageio operations. the pageio ops, hand-delivered by pointer β¨compl_opsβ pointer to pageio completion operations. completion ops, also by pointer, we stay consistent in this house π«Άrw_opsβ pointer to nfs read/write operations. the nfs read/write ops, say it with me: by pointer.bsizeβ io block size. it's asize_t, it's the block size for io, iconic.io_flagsβ extra parameters for the io function. little bonus flags, the sprinkles on top π
π SEE ALSO π
it's giving "let me introduce you to my entire friend group" β Kernel file ./fs/nfs/pagelist.c, plus literally this whole squad:
nfs_iocounter_wait(9)nfs_async_iocounter_wait(9)nfs_page_group_sync_on_bit_locked(9)nfs_page_create_from_page(9)nfs_page_create_from_folio(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_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)
ngl bestie, that's a lot of cross-references β go read them, they're all(9)kernel API pages and they all live around./fs/nfs. iykyk π
that's the whole vibe check β¨ this page came from ./fs/nfs, dated October 2026, in the Kernel API Manual β mwah, no notes, periodt ππ¦π
π¦ 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