FreeBSD/sys/dev/bxe/ecore_sp.c
/**
 * ecore_vlan_mac_h_read_lock - lock the vlan mac head list reader lock
 *
 * @sc:			device handle
 * @o:			vlan_mac object
 *
 * @details May sleep. Claims and releases execution queue lock during its run.
 */
lock the vlan mac head list reader lock
@sc:                 device handle
@o:                  vlan_mac object

@details May sleep. Claims and releases execution queue lock during its run.
lock the vlan mac head list reader lock @sc : device handle @o : vlan_mac object @details May sleep . Claims and releases execution queue lock during its run .
int ecore_vlan_mac_h_read_lock(struct bxe_softc *sc,
			       struct ecore_vlan_mac_obj *o)
{
	int rc;
	ECORE_SPIN_LOCK_BH(&o->exe_queue.lock);
	rc = __ecore_vlan_mac_h_read_lock(sc, o);
	ECORE_SPIN_UNLOCK_BH(&o->exe_queue.lock);
	return rc;
}
int ecore_vlan_mac_h_read_lock ( struct bxe_softc * sc , struct ecore_vlan_mac_obj * o ) { int rc ; ECORE_SPIN_LOCK_BH ( & o -> exe_queue . lock ) ; rc = __ecore_vlan_mac_h_read_lock ( sc , o ) ; ECORE_SPIN_UNLOCK_BH ( & o -> exe_queue . lock ) ; return rc ; }
ecore_vlan_mac_h_read_lock - lock the vlan mac head list reader lock
 @sc:                 device handle
 @o:                  vlan_mac object
ecore_vlan_mac_h_read_lock - lock the vlan mac head list reader lock @sc : device handle @o : vlan_mac object