FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Get the clientid pointer related to a given sessionid.
 */
Get the clientid pointer related to a given sessionid.
Get the clientid pointer related to a given sessionid .
static struct nfsclclient *
nfscl_getclntsess(uint8_t *sessionid)
{
	struct nfsclclient *clp;
	LIST_FOREACH(clp, &nfsclhead, nfsc_list)
		if (!NFSBCMP(NFSMNT_MDSSESSION(clp->nfsc_nmp)->nfsess_sessionid,
		    sessionid, NFSX_V4SESSIONID))
			break;
	return (clp);
}
static struct nfsclclient * nfscl_getclntsess ( uint8_t * sessionid ) { struct nfsclclient * clp ; LIST_FOREACH ( clp , & nfsclhead , nfsc_list ) if ( ! NFSBCMP ( NFSMNT_MDSSESSION ( clp -> nfsc_nmp ) -> nfsess_sessionid , sessionid , NFSX_V4SESSIONID ) ) break ; return ( clp ) ; }
Get the clientid pointer related to a given sessionid.
Get the clientid pointer related to a given sessionid .