nfsd_splice_read(9)
π nfsd_splice_read β a Kernel API Manual moment (section 9, bestie)
okay so this is nfsd_splice_read(9) from the Kernel API Manual, and honestly? it's giving "small function, big responsibilities." it does a VFS read, but make it splice-pipe flavored. let's get into it π«Ά
β¨ NAME β¨
nfsd_splice_read β Perform a VFS read using a splice pipe π
πΈ SYNOPSIS πΈ
__be32 nfsd_splice_read (struct svc_rqst *rqstp , struct svc_fh *fhp ,
struct file *file , loff_t offset , unsigned long *count , u32 *eof );
literally one call, six arguments, zero chill. keep it exactly like that, no cap. β¨
π¦ ARGUMENTS π¦
rqstpβ the RPC transaction context, aka the vibe check container for this whole call π«fhpβ file handle of the file we're about to read, the little ID card for the file πfileβ the already-openedstruct fileof the file to be read, like, it's already dressed and ready to go πoffsetβ starting byte offset, where we begin the read. main character starting point βcountβ this one's a double agent, lowkey: IN: the requested number of bytes; OUT: the number of bytes actually read π₯eofβ OUT: gets set non-zero if the operation reached the end of the file. end-of-file notification, slay π
bestie pls note thatcountandeofare out parameters β they come back changed. that's not me being dramatic, that's just the API. π
π DESCRIPTION π
Returns nfs_ok on success, otherwise an nfserr stat value is returned. that's it, that's the whole description, and honestly it ate. no notes. β¨
π§ SEE ALSO π§
Kernel file ./fs/nfsd/vfs.c and the whole friend group:
nfserrno(9)nfsd_lookup(9)nfsd_setattr(9)nfsd4_is_junction(9)nfsd_open_verified(9)nfsd_iter_read(9)nfsd_vfs_write(9)nfsd_read_splice_ok(9)nfsd_read(9)nfsd_write(9)nfsd_commit(9)nfsd_create_setattr(9)nfsd_symlink(9)nfsd_link(9)nfsd_rename(9)nfsd_unlink(9)nfsd_readdir(9)nfsd_filp_close(9)nfsd_removexattr(9)nfsd_get_case_info(9)
and that's the page!! π this one lives under ./fs/nfsd and it's dated October 2026 β so yeah, mark your calendar bestie, nfsd_splice_read(9) is coming through with the splice pipe energy and we are obsessed. πππ«Ά
π¦ 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