FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Search for a devinfo by deviceid. If one is found, return it after
 * acquiring a reference count on it.
 */
Search for a devinfo by deviceid. If one is found, return it after
acquiring a reference count on it.
Search for a devinfo by deviceid . If one is found return it after acquiring a reference count on it .
struct nfscldevinfo *
nfscl_getdevinfo(struct nfsclclient *clp, uint8_t *deviceid,
    struct nfscldevinfo *dip)
{
	NFSLOCKCLSTATE();
	if (dip == NULL)
		dip = nfscl_finddevinfo(clp, deviceid);
	if (dip != NULL)
		dip->nfsdi_refcnt++;
	NFSUNLOCKCLSTATE();
	return (dip);
}
struct nfscldevinfo * nfscl_getdevinfo ( struct nfsclclient * clp , uint8_t * deviceid , struct nfscldevinfo * dip ) { NFSLOCKCLSTATE ( ) ; if ( dip == NULL ) dip = nfscl_finddevinfo ( clp , deviceid ) ; if ( dip != NULL ) dip -> nfsdi_refcnt ++ ; NFSUNLOCKCLSTATE ( ) ; return ( dip ) ; }
Search for a devinfo by deviceid.
Search for a devinfo by deviceid .