nfs2_decode_dirent(9)
π¦ 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 areaddirplusentry. π
π 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
- 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