FreeBSD/sys/xen/hvm.h
/**
 * \brief Wrapper function to obtain a HVM parameter value.
 *
 * \param index	HVM parameter index; see <xen/interface/hvm/params.h>.
 * 
 * \returns	0 on failure; the value of the parameter otherwise.
 */
\brief Wrapper function to obtain a HVM parameter value.
\param index HVM parameter index; see .

\returns     0 on failure; the value of the parameter otherwise.
\ brief Wrapper function to obtain a HVM parameter value . \ param index HVM parameter index ; see . \ returns 0 on failure ; the value of the parameter otherwise .
static inline unsigned long
hvm_get_parameter(int index)
{
	struct xen_hvm_param xhv;
	int error;
	xhv.domid = DOMID_SELF;
	xhv.index = index;
	error = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
	if (error) {
		printf("%s: error %d trying to get %d\n", __func__,
		    error, index);
		return (0);
	}
	return (xhv.value);
}
static inline unsigned long hvm_get_parameter ( int index ) { struct xen_hvm_param xhv ; int error ; xhv . domid = DOMID_SELF ; xhv . index = index ; error = HYPERVISOR_hvm_op ( HVMOP_get_param , & xhv ) ; if ( error ) { printf ( " \n " , __func__ , error , index ) ; return ( 0 ) ; } return ( xhv . value ) ; }
\brief Wrapper function to obtain a HVM parameter value.
\ brief Wrapper function to obtain a HVM parameter value .