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

Issue Xen sysctl operations that are available only to Dom0. More...

Files

file  sysctl.h
 Xen Dom0 system control operations.

Functions

int xen_sysctl_physinfo (struct xen_sysctl_physinfo *info)
 Query physical host information from Xen.
int xen_sysctl_getdomaininfo (struct xen_domctl_getdomaininfo *domaininfo, uint16_t first, uint16_t num)
 Retrieves information about Xen domains.

Detailed Description

Issue Xen sysctl operations that are available only to Dom0.

Function Documentation

◆ xen_sysctl_getdomaininfo()

int xen_sysctl_getdomaininfo ( struct xen_domctl_getdomaininfo * domaininfo,
uint16_t first,
uint16_t num )

#include <zephyr/xen/dom0/sysctl.h>

Retrieves information about Xen domains.

Parameters
[out]domaininfoA pointer to the xen_domctl_getdomaininfo structure to store the retrieved domain information.
firstThe first domain ID to retrieve information for.
numThe maximum number of domains to retrieve information for.
Attention
Available only when the following Kconfig option is enabled: CONFIG_XEN_DOM0.
Returns
Number of entries written to domaininfo on success, negative errno value on failure.
Return values
-EINVALdomaininfo is NULL or num is zero.

◆ xen_sysctl_physinfo()

int xen_sysctl_physinfo ( struct xen_sysctl_physinfo * info)

#include <zephyr/xen/dom0/sysctl.h>

Query physical host information from Xen.

Attention
Available only when the following Kconfig option is enabled: CONFIG_XEN_DOM0.
Parameters
[out]infoBuffer that receives the Xen physical host information.
Returns
0 on success, negative errno value on failure.
Return values
-EINVALinfo is NULL.