VirtualBox

Changeset 9429 in vbox for trunk/include


Ignore:
Timestamp:
Jun 5, 2008 3:22:37 PM (17 years ago)
Author:
vboxsync
Message:

RTMpDoesCpuExist -> RTMpIsCpuPossible. Changed the RTMpGetCount and RTMpGetSet specification to include all possible cpus.

File:
1 edited

Legend:

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

    r9309 r9429  
    6767 *
    6868 * This may or may not validate the precense of the CPU, so, use
    69  * RTMpDoesCpuExist for that.
     69 * RTMpIsCpuPossible for that.
    7070 *
    7171 * @returns The corresponding CPU identifier, NIL_RTCPUID on failure.
     
    8585
    8686/**
    87  * Checks if a CPU is online or not.
     87 * Checks if a CPU exists in the system or may possibly be hotplugged later.
    8888 *
    8989 * @returns true/false accordingly.
    9090 * @param   idCpu       The identifier of the CPU.
    9191 */
    92 RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu);
    93 
    94 /**
    95  * Checks if a CPU exist or not / validates a CPU id.
     92RTDECL(bool) RTMpIsCpuPossible(RTCPUID idCpu);
     93
     94/**
     95 * Gets set of the CPUs present in the system pluss any that may
     96 * possibly be hotplugged later.
     97 *
     98 * @returns pSet.
     99 * @param   pSet    Where to put the set.
     100 */
     101RTDECL(PRTCPUSET) RTMpGetSet(PRTCPUSET pSet);
     102
     103/**
     104 * Get the count of CPUs present in the system plus any that may
     105 * possibly be hotplugged later.
     106 *
     107 * @return The count.
     108 */
     109RTDECL(RTCPUID) RTMpGetCount(void);
     110
     111/**
     112 * Gets set of the CPUs present that are currently online.
     113 *
     114 * @returns pSet.
     115 * @param   pSet    Where to put the set.
     116 */
     117RTDECL(PRTCPUSET) RTMpGetOnlineSet(PRTCPUSET pSet);
     118
     119/**
     120 * Get the count of CPUs that are currently online.
     121 *
     122 * @return The count.
     123 */
     124RTDECL(RTCPUID) RTMpGetOnlineCount(void);
     125
     126/**
     127 * Checks if a CPU is online or not.
    96128 *
    97129 * @returns true/false accordingly.
    98130 * @param   idCpu       The identifier of the CPU.
    99131 */
    100 RTDECL(bool) RTMpDoesCpuExist(RTCPUID idCpu);
    101 
    102 /**
    103  * Gets set of the CPUs present in the system.
    104  *
    105  * This may or may not validate the precense of the CPU, so, use
    106  * RTMpDoesCpuExist for that.
    107  *
    108  * @returns pSet.
    109  * @param   pSet    Where to put the set.
    110  */
    111 RTDECL(PRTCPUSET) RTMpGetSet(PRTCPUSET pSet);
    112 
    113 /**
    114  * Get the count of CPUs presetn in the system.
    115  *
    116  * @return The count.
    117  */
    118 RTDECL(RTCPUID) RTMpGetCount(void);
    119 
    120 /**
    121  * Gets set of the CPUs present that are currently online.
    122  *
    123  * @returns pSet.
    124  * @param   pSet    Where to put the set.
    125  */
    126 RTDECL(PRTCPUSET) RTMpGetOnlineSet(PRTCPUSET pSet);
    127 
    128 /**
    129  * Get the count of CPUs that are currently online.
    130  *
    131  * @return The count.
    132  */
    133 RTDECL(RTCPUID) RTMpGetOnlineCount(void);
     132RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu);
    134133
    135134
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