FreeBSD/lib/libkvm/kvm_vnet.c
/*
 * Check whether the value is within the vnet symbol range and
 * only if so adjust the offset relative to the current base.
 */
Check whether the value is within the vnet symbol range and
only if so adjust the offset relative to the current base.
Check whether the value is within the vnet symbol range and only if so adjust the offset relative to the current base .
kvaddr_t
_kvm_vnet_validaddr(kvm_t *kd, kvaddr_t value)
{
	if (value == 0)
		return (value);
	if (!kd->vnet_initialized)
		return (value);
	if (value < kd->vnet_start || value >= kd->vnet_stop)
		return (value);
	return (kd->vnet_base + value);
}
kvaddr_t _kvm_vnet_validaddr ( kvm_t * kd , kvaddr_t value ) { if ( value == 0 ) return ( value ) ; if ( ! kd -> vnet_initialized ) return ( value ) ; if ( value < kd -> vnet_start || value >= kd -> vnet_stop ) return ( value ) ; return ( kd -> vnet_base + value ) ; }
Check whether the value is within the vnet symbol range and
 only if so adjust the offset relative to the current base.
Check whether the value is within the vnet symbol range and only if so adjust the offset relative to the current base .