Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/xen/xen-os.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
static inline bool | static inline bool | ||||
xen_support_evtchn_rebind(void) | xen_support_evtchn_rebind(void) | ||||
{ | { | ||||
return (!xen_hvm_domain() || xen_vector_callback_enabled); | return (!xen_hvm_domain() || xen_vector_callback_enabled); | ||||
} | } | ||||
static inline bool | static inline bool | ||||
xen_has_pv_shutdown_handler(void) | |||||
royger: Please drop the 'has' from the function name, as other similar functions just use xen_pv_foo… | |||||
{ | |||||
return (xen_pv_domain()); | |||||
} | |||||
static inline bool | |||||
xen_pv_disks_disabled(void) | xen_pv_disks_disabled(void) | ||||
{ | { | ||||
return (xen_hvm_domain() && xen_disable_pv_disks != 0); | return (xen_hvm_domain() && xen_disable_pv_disks != 0); | ||||
} | } | ||||
static inline bool | static inline bool | ||||
xen_pv_nics_disabled(void) | xen_pv_nics_disabled(void) | ||||
{ | { | ||||
return (xen_hvm_domain() && xen_disable_pv_nics != 0); | return (xen_hvm_domain() && xen_disable_pv_nics != 0); | ||||
} | } | ||||
#endif /* !__ASSEMBLY__ */ | #endif /* !__ASSEMBLY__ */ | ||||
#endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ | #endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ |
Please drop the 'has' from the function name, as other similar functions just use xen_pv_foo format.