FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Find a devinfo for this deviceid. Return NULL upon failure.
 */
Find a devinfo for this deviceid. Return NULL upon failure.
Find a devinfo for this deviceid . Return NULL upon failure .
static struct nfscldevinfo *
nfscl_finddevinfo(struct nfsclclient *clp, uint8_t *deviceid)
{
	struct nfscldevinfo *dip;
	LIST_FOREACH(dip, &clp->nfsc_devinfo, nfsdi_list)
		if (NFSBCMP(dip->nfsdi_deviceid, deviceid, NFSX_V4DEVICEID)
		    == 0)
			break;
	return (dip);
}
static struct nfscldevinfo * nfscl_finddevinfo ( struct nfsclclient * clp , uint8_t * deviceid ) { struct nfscldevinfo * dip ; LIST_FOREACH ( dip , & clp -> nfsc_devinfo , nfsdi_list ) if ( NFSBCMP ( dip -> nfsdi_deviceid , deviceid , NFSX_V4DEVICEID ) == 0 ) break ; return ( dip ) ; }
Find a devinfo for this deviceid.
Find a devinfo for this deviceid .