Zephyr API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Query the Xen hypervisor version exposed to the current domain. More...

Files

file  version.h
 Xen version queries.
 

Functions

int xen_version (void)
 Get the Xen version encoded as major and minor numbers.
 
int xen_version_extraversion (char *extra, int len)
 Get the Xen extra version string.
 

Detailed Description

Query the Xen hypervisor version exposed to the current domain.

Function Documentation

◆ xen_version()

int xen_version ( void )

#include <zephyr/xen/version.h>

Get the Xen version encoded as major and minor numbers.

The returned integer uses the Xen major:minor encoding defined by XENVER_version.

Returns
Encoded Xen version on success, negative errno value on failure.

◆ xen_version_extraversion()

int xen_version_extraversion ( char * extra,
int len )

#include <zephyr/xen/version.h>

Get the Xen extra version string.

The destination buffer is cleared before the hypercall runs.

Parameters
[out]extraDestination buffer for the extra version string.
lenSize of extra in bytes. It must be at least XEN_EXTRAVERSION_LEN.
Returns
0 on success, negative errno value on failure.
Return values
-EINVALextra is NULL or len is too small.