nfsd_splice_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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-opened struct file of 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 that count and eof are 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:


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