nfsd_create_setattr(9)
π NAME π
nfsd_create_setattr β setting a freshly created file's attributes, okurrr β¨ (this is the Kernel API Manual, bestie, and yes we're reading kernel docs for fun now π)
πΈ SYNOPSIS πΈ
__be32 nfsd_create_setattr (struct svc_rqst *rqstp , struct svc_fh *fhp
, struct svc_fh *resfhp , struct nfsd_attrs *attrs );
π¦ ARGUMENTS π¦
rqstpβ the RPC transaction that's being executed rn, like the group chat message currently being sent πfhpβ the NFS filehandle of the parent directory (the one that's giving birth to the new object, lowkey iconic of it π)resfhpβ the NFS filehandle of the new object, the main character we just made β¨attrsβ the attributes that got requested for the new object, aka the vibe the file is supposed to have π
π DESCRIPTION π
So here's the whole tea, bestie: this thing returns nfs_ok when it works π, or an nfsstat in network byte order when it doesn't π. That's it, that's the description β no cap, she's short but she's honest.
Ngl, "an nfsstat in network byte order" is the important bit β it's not a plain int sitting there looking cute, it's byte-swapped, so don't go comparing it raw fr fr π
β SEE ALSO β
Kernel file ./fs/nfsd/vfs.c, plus the whole friend group that comes with it π«Ά:
nfserrno(9)nfsd_lookup(9)nfsd_setattr(9)nfsd4_is_junction(9)nfsd_open_verified(9)nfsd_splice_read(9)nfsd_iter_read(9)nfsd_vfs_write(9)nfsd_read_splice_ok(9)nfsd_read(9)nfsd_write(9)nfsd_commit(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, bestie π
β¨ this one lives in ./fs/nfsd, it's dated October 2026, and it goes by nfsd_create_setattr(9) β memorize the glow-up, it's giving legend behavior πππ¦
π¦ 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