VirtualBox

Changeset 7354 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 7, 2008 12:57:29 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28777
Message:

RT_MP_MAX_CPU -> RTCPUSET_MAX_CPUS (/ MAXIMUM_PROCESSORS). Added the new RTMp functions to NT.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/include/iprt/cpuset.h

    r7336 r7354  
    3737 * @{
    3838 */
     39
     40/**
     41 * The maximum number of CPUs a set can contain and IPRT is able
     42 * to reference.
     43 * @remarks This is the maximum value of the supported platforms.
     44 */
     45#define RTCPUSET_MAX_CPUS       64
    3946
    4047/**
  • TabularUnified trunk/include/iprt/mp.h

    r7330 r7354  
    3838 */
    3939
    40 /** Maximum number of CPUs we support in one system.
    41  * @remarks The current limit in Windows (affinity mask)
    42  */
    43 #define RT_MP_MAX_CPU                   64
    44 
    45 
    4640/**
    4741 * Gets the identifier of the CPU executing the call.
     
    5650
    5751/**
     52 * Converts a CPU identifier to a CPU set index.
     53 *
     54 * This may or may not validate the precense of the CPU.
     55 *
     56 * @returns The CPU set index on success, -1 on failure.
     57 * @param   idCpu       The identifier of the CPU.
     58 */
     59RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu);
     60
     61/**
     62 * Converts a CPU set index to a a CPU identifier.
     63 *
     64 * This may or may not validate the precense of the CPU, so, use
     65 * RTMpDoesCpuExist for that.
     66 *
     67 * @returns The corresponding CPU identifier, NIL_RTCPUID on failure.
     68 * @param   iCpu    The CPU set index.
     69 */
     70RTDECL(RTCPUID) RTMpCpuIdFromSetIndex(int iCpu);
     71
     72/**
     73 * Gets the max CPU identifier (inclusive).
     74 *
     75 * Inteded for brute force enumerations, but use with
     76 * care as it may be expensive.
     77 *
     78 * @returns The current higest CPU identifier value.
     79 */
     80RTDECL(RTCPUID) RTMpGetMaxCpuId(void);
     81
     82/**
    5883 * Checks if a CPU is online or not.
    5984 *
     
    7095 */
    7196RTDECL(bool) RTMpDoesCpuExist(RTCPUID idCpu);
    72 
    73 /**
    74  * Converts a CPU identifier to a CPU set index.
    75  *
    76  * This may or may not validate the precense of the CPU.
    77  *
    78  * @returns The CPU set index on success, -1 on failure.
    79  * @param   idCpu       The identifier of the CPU.
    80  */
    81 RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu);
    82 
    83 /**
    84  * Converts a CPU set index to a a CPU identifier.
    85  *
    86  * This may or may not validate the precense of the CPU, so, use
    87  * RTMpDoesCpuExist for that.
    88  *
    89  * @returns The corresponding CPU identifier, NIL_RTCPUID on failure.
    90  * @param   iCpu    The CPU set index.
    91  */
    92 RTDECL(RTCPUID) RTMpCpuIdFromSetIndex(int iCpu);
    93 
    94 /**
    95  * Gets the max CPU identifier (inclusive).
    96  *
    97  * Inteded for brute force enumerations, but use with
    98  * care as it may be expensive.
    99  *
    100  * @returns The current higest CPU identifier value.
    101  */
    102 RTDECL(RTCPUID) RTMpGetMaxCpuId(void);
    10397
    10498/**
Note: See TracChangeset for help on using the changeset viewer.

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