VirtualBox

Changeset 12104 in vbox for trunk/include/iprt/mp.h


Ignore:
Timestamp:
Sep 4, 2008 7:33:44 PM (16 years ago)
Author:
vboxsync
Message:

iprt: Added RTMpGetPresentSet, RTMpGetPresentCount and RTMpIsCpuPresent. Generic implementation wrapping RTMpGetSet, RTMpGetCount and RTMpIsCpuPossible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mp.h

    r10422 r12104  
    8484RTDECL(RTCPUID) RTMpGetMaxCpuId(void);
    8585
     86
    8687/**
    8788 * Checks if a CPU exists in the system or may possibly be hotplugged later.
     
    109110RTDECL(RTCPUID) RTMpGetCount(void);
    110111
     112
    111113/**
    112114 * Gets set of the CPUs present that are currently online.
     
    131133 */
    132134RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu);
     135
     136
     137/**
     138 * Gets set of the CPUs present in the system.
     139 *
     140 * @returns pSet.
     141 * @param   pSet    Where to put the set.
     142 */
     143RTDECL(PRTCPUSET) RTMpGetPresentSet(PRTCPUSET pSet);
     144
     145/**
     146 * Get the count of CPUs that are present in the system.
     147 *
     148 * @return The count.
     149 */
     150RTDECL(RTCPUID) RTMpGetPresentCount(void);
     151
     152/**
     153 * Checks if a CPU is present in the system.
     154 *
     155 * @returns true/false accordingly.
     156 * @param   idCpu       The identifier of the CPU.
     157 */
     158RTDECL(bool) RTMpIsCpuPresent(RTCPUID idCpu);
     159
    133160
    134161/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette