FreeBSD/sys/fs/nfsserver/nfs_nfsdport.c
/*
 * Set up a pathname buffer and return a pointer to it and, optionally
 * set a hash pointer.
 */
Set up a pathname buffer and return a pointer to it and, optionally
set a hash pointer.
Set up a pathname buffer and return a pointer to it and optionally set a hash pointer .
void
nfsvno_setpathbuf(struct nameidata *ndp, char **bufpp, u_long **hashpp)
{
	struct componentname *cnp = &ndp->ni_cnd;
	cnp->cn_flags |= (NOMACCHECK | HASBUF);
	cnp->cn_pnbuf = uma_zalloc(namei_zone, M_WAITOK);
	if (hashpp != NULL)
		*hashpp = NULL;
	*bufpp = cnp->cn_pnbuf;
}
void nfsvno_setpathbuf ( struct nameidata * ndp , char * * bufpp , u_long * * hashpp ) { struct componentname * cnp = & ndp -> ni_cnd ; cnp -> cn_flags |= ( NOMACCHECK | HASBUF ) ; cnp -> cn_pnbuf = uma_zalloc ( namei_zone , M_WAITOK ) ; if ( hashpp != NULL ) * hashpp = NULL ; * bufpp = cnp -> cn_pnbuf ; }
Set up a pathname buffer and return a pointer to it and, optionally
 set a hash pointer.
Set up a pathname buffer and return a pointer to it and optionally set a hash pointer .