nfs2_decode_dirent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nfs2_decode_dirent(9) πŸ¦‹

okay bestie, we're in the Kernel API Manual now, and this page is giving β€œone NFSv2 directory entry, decoded, no cap.” ✨


πŸ’– NAME πŸ’–

nfs2_decode_dirent β€” decode a single NFSv2 directory entry stored in the local page cache. πŸŽ€

🌸 SYNOPSIS 🌸

       int nfs2_decode_dirent (struct xdr_stream *xdr , struct nfs_entry *entry
       , bool plus );

✨ ARGUMENTS ✨

  • xdr β€” the XDR stream where the entry resides. πŸ’«
  • entry β€” the buffer to fill in with entry data. 🫢
  • plus β€” a boolean indicating whether this should be a readdirplus entry. πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

Returns zero if successful, otherwise a negative errno value is returned. slay when it's zero, 😭 when it's negative.

This function is not invoked during READDIR reply decoding, bestie β€” it's invoked whenever an application invokes the getdents(2) system call on a directory already in our cache. periodt. πŸ¦‹

πŸŽ€ 2.2.17. entry πŸŽ€

       struct entry { unsigned        fileid; filename        name; nfscookie
       cookie; entry           *nextentry; };

🌈 SEE ALSO 🌈

  • Kernel file ./fs/nfs/nfs2xdr.c πŸ‘€

mwah πŸ’‹ β€” source/version: ./fs/nfs, date: October 2026, and it's the nfs2_decode_dirent(9) page, signing off! πŸ«ΆπŸ’–

πŸ“¦ where this page comes from