FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Find a delegation for this file handle. Return NULL upon failure.
 */
Find a delegation for this file handle. Return NULL upon failure.
Find a delegation for this file handle . Return NULL upon failure .
static struct nfscldeleg *
nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen)
{
	struct nfscldeleg *dp;
	LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) {
	    if (dp->nfsdl_fhlen == fhlen &&
		!NFSBCMP(dp->nfsdl_fh, fhp, fhlen))
		break;
	}
	return (dp);
}
static struct nfscldeleg * nfscl_finddeleg ( struct nfsclclient * clp , u_int8_t * fhp , int fhlen ) { struct nfscldeleg * dp ; LIST_FOREACH ( dp , NFSCLDELEGHASH ( clp , fhp , fhlen ) , nfsdl_hash ) { if ( dp -> nfsdl_fhlen == fhlen && ! NFSBCMP ( dp -> nfsdl_fh , fhp , fhlen ) ) break ; } return ( dp ) ; }
Find a delegation for this file handle.
Find a delegation for this file handle .