Changeset 7354 in vbox for trunk/include/iprt
- Timestamp:
- Mar 7, 2008 12:57:29 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28777
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/include/iprt/cpuset.h ¶
r7336 r7354 37 37 * @{ 38 38 */ 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 39 46 40 47 /** -
TabularUnified trunk/include/iprt/mp.h ¶
r7330 r7354 38 38 */ 39 39 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 6444 45 46 40 /** 47 41 * Gets the identifier of the CPU executing the call. … … 56 50 57 51 /** 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 */ 59 RTDECL(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 */ 70 RTDECL(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 */ 80 RTDECL(RTCPUID) RTMpGetMaxCpuId(void); 81 82 /** 58 83 * Checks if a CPU is online or not. 59 84 * … … 70 95 */ 71 96 RTDECL(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, use87 * 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 with98 * care as it may be expensive.99 *100 * @returns The current higest CPU identifier value.101 */102 RTDECL(RTCPUID) RTMpGetMaxCpuId(void);103 97 104 98 /**
Note:
See TracChangeset
for help on using the changeset viewer.