VirtualBox

Ignore:
Timestamp:
Sep 30, 2021 12:12:26 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/memobj: Passing pszTag around...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp

    r91481 r91482  
    287287
    288288DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
    289                                          RTR0PROCESS R0Process)
     289                                         RTR0PROCESS R0Process, const char *pszTag)
    290290{
    291291    AssertMsgReturn(R0Process == RTR0ProcHandleSelf(), ("%p != %p\n", R0Process, RTR0ProcHandleSelf()), VERR_NOT_SUPPORTED);
     
    294294    const ULONG cPages = cb >> PAGE_SHIFT;
    295295    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]),
    296                                                            RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, NULL);
     296                                                           RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, pszTag);
    297297    if (!pMemOs2)
    298298        return VERR_NO_MEMORY;
     
    316316
    317317
    318 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     318DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    319319{
    320320    /* create the object. */
    321321    const ULONG cPages = cb >> PAGE_SHIFT;
    322322    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]),
    323                                                            RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     323                                                           RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    324324    if (!pMemOs2)
    325325        return VERR_NO_MEMORY;
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