nfs3svc_encode_entryplus3(9)
β¨ nfs3svc_encode_entryplus3 β¨
okay so bestie, welcome to another episode of the Kernel API Manual π
and today's main character is a little function called nfs3svc_encode_entryplus3 β it's the one that encodes one NFSv3 READDIRPLUS entry. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
int nfs3svc_encode_entryplus3 (void *data , const char *name , int
namlen , loff_t offset , u64 ino , unsigned int d_type );
like, yes, it's a whole mouthful, but we move π
πΈ ARGUMENTS πΈ
dataβ the directory context. it's giving "the whole situation" energy ποΈnameβ the name of the object we're encoding. the moment. the icon. β¨namlenβ how long that name is, in bytes. we're counting, bestie πoffsetβ the offset of the previous entry. yes, previous. pay attention π«Άinoβ the fileid of this entry. its literal ID, no cap π₯d_typeβ unused. bestie's just here for moral support, she does nothing π
π DESCRIPTION π
so here's the tea β β this function returns:
0β slay! the entry was successfully encoded π-EINVALβ uh oh, an encoding problem happened π and the secondary status code lives inresp->common.err, so go look there
on exit, these fields get updated, periodt:
resp->xdrresp->common.errresp->cookie_offset
like three little glow-ups on the way out ππ
π§ SEE ALSO π§
- Kernel file
./fs/nfsd/nfs3xdr.c svcxdr_decode_nfs_fh3(9)svcxdr_encode_nfsstat3(9)svcxdr_encode_post_op_attr(9)nfs3svc_encode_cookie3(9)nfs3svc_encode_entry3(9)
go read them, iykyk πβ¨
and that's the whole page, bestie π«Ά shoutout to the source ./fs/nfsd and the date October 2026 β catch you on the next manpage, mwah ππ
π¦ 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