nfsd_lookup(9)
π nfsd_lookup β look up a single path component for nfsd π
πΈ NAME πΈ
Okay bestie, welcome to nfsd_lookup(9) from the Kernel API Manual π«Ά. This is nfsd_lookup β look up a single path component for nfsd β and itβs giving βone component only, we are not doing the whole path todayβ energy π
β¨.
β¨ SYNOPSIS β¨
No notes, just the exact signature:
__be32 nfsd_lookup (struct svc_rqst *rqstp , struct svc_fh *fhp , const
char *name , unsigned int len , struct svc_fh *resfh );
π ARGUMENTS π
These are the little squad members, no cap:
rqstpβ the request context.fhpβ the file handle of the directory.nameβ the component name, orNULLto look up parent.lenβ length ofnameto examine.resfhβ pointer to pre-initialised filehandle to hold result.
π DESCRIPTION π
Look up one component of a pathname. N.B. β after this call, both fhp and resfh need an fh_put. Like, do not ghost those handles, okay? π«Ά
If the lookup would cross a mountpoint, and the mounted filesystem is exported to the client with NFSEXP_NOHIDE, then the lookup is accepted as it stands and the mounted directory is returned. Otherwise the covered directory is returned. Thatβs the whole vibe: mountpoint crossing gets the mounted directory if NFSEXP_NOHIDE is in the chat; otherwise itβs the covered directory π¦β¨.
β οΈ NOTE β οΈ
β οΈ Bestie, listen: this mountpoint crossing is not supported properly by all clients and is explicitly disallowed for NFSv3. Thatβs not me being dramatic, thatβs literally the note π.
π¦ SEE ALSO π¦
Kernel file ./fs/nfsd/vfs.c β and the whole reference squad is:
nfserrno(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_create_setattr(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)
xoxo π β source/version corner: ./fs/nfsd; date: October 2026; page: nfsd_lookup(9). Stay hydrated and donβt forget the fh_put, bestie π«Άπ
π¦ 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