<returntype='char *'info='NULL in case of error. The caller must free the returned string.'/>
<argname='domain'type='virDomainPtr'info='pointer to domain object'/>
</function>
<functionname='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>
<returntype='int'info='the number of info filled in case of success, -1 in case of failure.'/>
<argname='domain'type='virDomainPtr'info='pointer to domain object, or NULL for Domain0'/>
</function>
<functionname='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>
<returntype='int'info='0 in case of success, -1 in case of failure.'/>
<argname='domain'type='virDomainPtr'info='pointer to domain object, or NULL for Domain0'/>
<argname='vcpu'type='unsigned int'info='virtual CPU number'/>
<argname='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.'/>