diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-01-21 15:41:15 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-01-21 15:41:15 +0000 |
commit | e439de2b2dc5ea9bc0b680e70ec9616703a914f5 (patch) | |
tree | 212ed8f839166263780f5e995ca4baf573cad257 /libvirt-python-api.xml | |
parent | 065f8cc642081b4542d7ac2a938608202fe75196 (diff) | |
download | libvirt-python-v6-e439de2b2dc5ea9bc0b680e70ec9616703a914f5.tar.gz libvirt-python-v6-e439de2b2dc5ea9bc0b680e70ec9616703a914f5.tar.xz libvirt-python-v6-e439de2b2dc5ea9bc0b680e70ec9616703a914f5.zip |
Add missing vcpu/schedular APIs to python binding
Diffstat (limited to 'libvirt-python-api.xml')
-rw-r--r-- | libvirt-python-api.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libvirt-python-api.xml b/libvirt-python-api.xml index 46b2fa2..f50b378 100644 --- a/libvirt-python-api.xml +++ b/libvirt-python-api.xml @@ -82,5 +82,33 @@ <arg name='maxCells' type='int' info='number of cell in the list'/> <return type='int *' info="the list available memory in the cells"/> </function> + <function name='virDomainGetSchedulerParameters' file='python'> + <info>Get the scheduler parameters, the @params array will be filled with the values.</info> + <return type='int' info='-1 in case of error, 0 in case of success.'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object'/> + </function> + <function name='virDomainGetSchedulerType' file='python'> + <info>Get the scheduler type.</info> + <return type='char *' info='NULL in case of error. The caller must free the returned string.'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object'/> + </function> + <function name='virDomainGetVcpus' file='python'> + <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.</info> + <return type='int' info='the number of info filled in case of success, -1 in case of failure.'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> + </function> + <function name='virDomainPinVcpu' file='python'> + <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor.</info> + <return type='int' info='0 in case of success, -1 in case of failure.'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/> + <arg name='vcpu' type='unsigned int' info='virtual CPU number'/> + <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.'/> + </function> + <function name='virDomainSetSchedulerParameters' file='python'> + <info>Change the scheduler parameters</info> + <return type='int' info='-1 in case of error, 0 in case of success.'/> + <arg name='domain' type='virDomainPtr' info='pointer to domain object'/> + <arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/> + </function> </symbols> </api> |