FreeBSD/sys/fs/nfs/nfs_commonport.c
/*
 * Look up a file name. Basically just initialize stuff and call namei().
 */
Look up a file name. Basically just initialize stuff and call namei().
Look up a file name . Basically just initialize stuff and call namei () .
int
nfsrv_lookupfilename(struct nameidata *ndp, char *fname, NFSPROC_T *p)
{
	int error;
	NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, fname,
	    p);
	error = namei(ndp);
	if (!error) {
		NDFREE(ndp, NDF_ONLY_PNBUF);
	}
	return (error);
}
int nfsrv_lookupfilename ( struct nameidata * ndp , char * fname , NFSPROC_T * p ) { int error ; NDINIT ( ndp , LOOKUP , FOLLOW | LOCKLEAF , UIO_USERSPACE , fname , p ) ; error = namei ( ndp ) ; if ( ! error ) { NDFREE ( ndp , NDF_ONLY_PNBUF ) ; } return ( error ) ; }
Look up a file name.
Look up a file name .