VirtualBox

Changeset 91836 in vbox for trunk


Ignore:
Timestamp:
Oct 19, 2021 8:28:44 AM (3 years ago)
Author:
vboxsync
Message:

SUP: Added SUPR0GetSessionUid(). bugref:10093

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r91799 r91836  
    20992099SUPR0DECL(PGVM) SUPR0GetSessionGVM(PSUPDRVSESSION pSession);
    21002100SUPR0DECL(int) SUPR0SetSessionVM(PSUPDRVSESSION pSession, PGVM pGVM, PVM pVM);
     2101SUPR0DECL(RTUID) SUPR0GetSessionUid(PSUPDRVSESSION pSession);
    21012102
    21022103SUPR0DECL(int) SUPR0LockMem(PSUPDRVSESSION pSession, RTR3PTR pvR3, uint32_t cPages, PRTHCPHYS paPages);
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r91805 r91836  
    300300    SUPEXP_STK_BACK(    1,  SUPR0GetSessionVM),
    301301    SUPEXP_STK_BACK(    3,  SUPR0SetSessionVM),
     302    SUPEXP_STK_BACK(    1,  SUPR0GetSessionUid),
    302303    SUPEXP_STK_BACK(    6,  SUPR0TscDeltaMeasureBySetIndex),
    303304    SUPEXP_STK_BACK(    1,  SUPR0TracerDeregisterDrv),
     
    33303331
    33313332
     3333/**
     3334 * For getting SUPDRVSESSION::Uid.
     3335 *
     3336 * @returns The session UID. NIL_RTUID if invalid pointer or not successfully
     3337 *          set by the host code.
     3338 * @param   pSession    The session of the current thread.
     3339 */
     3340SUPR0DECL(RTUID) SUPR0GetSessionUid(PSUPDRVSESSION pSession)
     3341{
     3342    AssertReturn(SUP_IS_SESSION_VALID(pSession), NIL_RTUID);
     3343    return pSession->Uid;
     3344}
     3345SUPR0_EXPORT_SYMBOL(SUPR0GetSessionUid);
     3346
     3347
    33323348/** @copydoc RTLogDefaultInstanceEx
    33333349 * @remarks To allow overriding RTLogDefaultInstanceEx locally. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r91800 r91836  
    223223 *          - nothing
    224224 */
    225 #define SUPDRV_IOC_VERSION                              0x00330000
     225#define SUPDRV_IOC_VERSION                              0x00330001
    226226
    227227/** SUP_IOCTL_COOKIE. */
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