VirtualBox

Ignore:
Timestamp:
Sep 29, 2021 11:43:57 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147163
Message:

IPRT/memobj: Passing pszTag around...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c

    r91478 r91479  
    954954
    955955DECLHIDDEN(int) rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment,
    956                                           unsigned fProt, size_t offSub, size_t cbSub)
     956                                          unsigned fProt, size_t offSub, size_t cbSub, const char *pszTag)
    957957{
    958958    /* Fail if requested to do something we can't. */
     
    10021002         * Create a memory object for the mapping.
    10031003         */
    1004         PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING, pv, cbSub, NULL);
     1004        PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING,
     1005                                                                   pv, cbSub, pszTag);
    10051006        if (pMemSolaris)
    10061007        {
     
    10221023
    10231024DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, PRTR0MEMOBJINTERNAL pMemToMap, RTR3PTR R3PtrFixed,
    1024                                         size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, size_t offSub, size_t cbSub)
     1025                                        size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, size_t offSub, size_t cbSub,
     1026                                        const char *pszTag)
    10251027{
    10261028    /*
     
    10461048     */
    10471049    PRTR0MEMOBJSOL pMemSolaris;
    1048     pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING, pb, cb, NULL);
     1050    pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING, pb, cb, pszTag);
    10491051    if (RT_UNLIKELY(!pMemSolaris))
    10501052        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