VirtualBox

Ignore:
Timestamp:
Feb 24, 2015 3:26:17 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98516
Message:

IPRT/r0drv/mp: Added RTMpCurSetIndex and RTMpCurSetIndexAndId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c

    r52618 r54415  
    4545}
    4646RT_EXPORT_SYMBOL(RTMpCpuId);
     47
     48
     49RTDECL(int) RTMpCurSetIndex(void)
     50{
     51    return smp_processor_id();
     52}
     53RT_EXPORT_SYMBOL(RTMpCurSetIndex);
     54
     55
     56RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu)
     57{
     58    return *pidCpu = smp_processor_id();
     59}
     60RT_EXPORT_SYMBOL(RTMpCurSetIndexAndId);
    4761
    4862
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