VirtualBox

Changeset 91480 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Sep 29, 2021 11:52:11 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/memobj: Passing pszTag around...

Location:
trunk/src/VBox/Runtime/r0drv
Files:
9 edited

Legend:

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

    r91479 r91480  
    937937
    938938
    939 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     939DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     940                                          const char *pszTag)
    940941{
    941942    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
     
    964965             * Create the IPRT memory object.
    965966             */
    966             PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     967            PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_PHYS,
     968                                                                            NULL, cb, pszTag);
    967969            if (pMemDarwin)
    968970            {
     
    10891091
    10901092
    1091 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    1092 {
    1093     RT_NOREF(ppMem, pvFixed, cb, uAlignment);
     1093DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     1094                                              const char *pszTag)
     1095{
     1096    RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag);
    10941097    return VERR_NOT_SUPPORTED;
    10951098}
    10961099
    10971100
    1098 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    1099 {
    1100     RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process);
     1101DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
     1102                                            RTR0PROCESS R0Process, const char *pszTag)
     1103{
     1104    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    11011105    return VERR_NOT_SUPPORTED;
    11021106}
  • trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c

    r91479 r91480  
    481481
    482482
    483 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     483DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     484                                          const char *pszTag)
    484485{
    485486    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    486487
    487488    /* create the object. */
    488     PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     489    PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_PHYS,
     490                                                                       NULL, cb, pszTag);
    489491    if (!pMemFreeBSD)
    490492        return VERR_NO_MEMORY;
     
    563565 * We're leaning on the examples provided by mmap and vm_mmap in vm_mmap.c here.
    564566 */
    565 static int rtR0MemObjNativeReserveInMap(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, vm_map_t pMap)
     567static int rtR0MemObjNativeReserveInMap(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     568                                        RTR0PROCESS R0Process, vm_map_t pMap, const char *pszTag)
    566569{
    567570    int rc;
     
    585588     */
    586589    PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_RES_VIRT,
    587                                                                        NULL, cb, NULL);
     590                                                                       NULL, cb, pszTag);
    588591    if (!pMemFreeBSD)
    589592        return VERR_NO_MEMORY;
     
    633636
    634637
    635 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    636 {
    637     return rtR0MemObjNativeReserveInMap(ppMem, pvFixed, cb, uAlignment, NIL_RTR0PROCESS, kernel_map);
    638 }
    639 
    640 
    641 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
     638DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     639                                              const char *pszTag)
     640{
     641    return rtR0MemObjNativeReserveInMap(ppMem, pvFixed, cb, uAlignment, NIL_RTR0PROCESS, kernel_map, pszTag);
     642}
     643
     644
     645DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
     646                                            RTR0PROCESS R0Process, const char *pszTag)
    642647{
    643648    return rtR0MemObjNativeReserveInMap(ppMem, (void *)R3PtrFixed, cb, uAlignment, R0Process,
    644                                         &((struct proc *)R0Process)->p_vmspace->vm_map);
     649                                        &((struct proc *)R0Process)->p_vmspace->vm_map, pszTag);
    645650}
    646651
  • trunk/src/VBox/Runtime/r0drv/haiku/memobj-r0drv-haiku.c

    r91479 r91480  
    284284
    285285
    286 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     286int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag)
    287287{
    288288    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
     
    290290
    291291    /* Create the object. */
    292     PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     292    PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag);
    293293    if (!pMemHaiku)
    294294        return VERR_NO_MEMORY;
     
    393393
    394394
    395 int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    396 {
     395int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag)
     396{
     397    RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag);
    397398    return VERR_NOT_SUPPORTED;
    398399}
    399400
    400401
    401 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    402 {
     402int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
     403                                RTR0PROCESS R0Process, const char *pszTag)
     404{
     405    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    403406    return VERR_NOT_SUPPORTED;
    404407}
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r91479 r91480  
    11561156
    11571157
    1158 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     1158DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     1159                                          const char *pszTag)
    11591160{
    11601161    IPRT_LINUX_SAVE_EFL_AC();
     
    11681169    AssertMsgReturn(PhysAddr == Phys, ("%#llx\n", (unsigned long long)Phys), VERR_ADDRESS_TOO_BIG);
    11691170
    1170     pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     1171    pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag);
    11711172    if (!pMemLnx)
    11721173    {
     
    14381439
    14391440
    1440 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
     1441DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     1442                                              const char *pszTag)
    14411443{
    14421444#if RTLNX_VER_MIN(2,4,22)
     
    14731475            if (pv)
    14741476            {
    1475                 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);
     1477                PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag);
    14761478                if (pMemLnx)
    14771479                {
     
    15011503
    15021504
    1503 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
     1505DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
     1506                                            RTR0PROCESS R0Process, const char *pszTag)
    15041507{
    15051508    IPRT_LINUX_SAVE_EFL_AC();
     
    15261529    }
    15271530
    1528     pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);
     1531    pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag);
    15291532    if (!pMemLnx)
    15301533    {
  • trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp

    r91479 r91480  
    651651    RT_ASSERT_PREEMPTIBLE();
    652652
    653     RT_NOREF_PV(pszTag);
    654 
    655653    /* do the allocation. */
    656     return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned, uCachePolicy);
     654    return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned, uCachePolicy, pszTag);
    657655}
    658656RT_EXPORT_SYMBOL(RTR0MemObjEnterPhysTag);
     
    674672    RT_ASSERT_PREEMPTIBLE();
    675673
    676     RT_NOREF_PV(pszTag);
    677 
    678674    /* do the reservation. */
    679     return rtR0MemObjNativeReserveKernel(pMemObj, pvFixed, cbAligned, uAlignment);
     675    return rtR0MemObjNativeReserveKernel(pMemObj, pvFixed, cbAligned, uAlignment, pszTag);
    680676}
    681677RT_EXPORT_SYMBOL(RTR0MemObjReserveKernelTag);
     
    700696    RT_ASSERT_PREEMPTIBLE();
    701697
    702     RT_NOREF_PV(pszTag);
    703 
    704698    /* do the reservation. */
    705     return rtR0MemObjNativeReserveUser(pMemObj, R3PtrFixed, cbAligned, uAlignment, R0Process);
     699    return rtR0MemObjNativeReserveUser(pMemObj, R3PtrFixed, cbAligned, uAlignment, R0Process, pszTag);
    706700}
    707701RT_EXPORT_SYMBOL(RTR0MemObjReserveUserTag);
  • trunk/src/VBox/Runtime/r0drv/netbsd/memobj-r0drv-netbsd.c

    r91479 r91480  
    349349
    350350
    351 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     351DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     352                                          const char *pszTag)
    352353{
    353354    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    354355
    355356    /* create the object. */
    356     PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     357    PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag);
    357358    if (!pMemNetBSD)
    358359        return VERR_NO_MEMORY;
     
    404405}
    405406
    406 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
     407DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     408                                              const char *pszTag)
    407409{
    408410    if (pvFixed != (void *)-1)
     
    413415    }
    414416
    415     PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_RES_VIRT, NULL, cb, NULL);
     417    PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_RES_VIRT,
     418                                                                    NULL, cb, pszTag);
    416419    if (!pMemNetBSD)
    417420        return VERR_NO_MEMORY;
     
    432435
    433436
    434 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    435 {
     437DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
     438                                            RTR0PROCESS R0Process, const char *pszTag)
     439{
     440    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    436441    printf("NativeReserveUser\n");
    437442    return VERR_NOT_SUPPORTED;
  • trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp

    r91479 r91480  
    717717
    718718
    719 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     719DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     720                                          const char *pszTag)
    720721{
    721722    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE || uCachePolicy == RTMEM_CACHE_POLICY_MMIO, VERR_NOT_SUPPORTED);
     
    731732     * Create the IPRT memory object.
    732733     */
    733     PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     734    PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag);
    734735    if (pMemNt)
    735736    {
     
    881882
    882883
    883 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
     884DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     885                                              const char *pszTag)
    884886{
    885887    /*
    886888     * MmCreateSection(SEC_RESERVE) + MmMapViewInSystemSpace perhaps?
    887      */
    888     RT_NOREF4(ppMem, pvFixed, cb, uAlignment);
     889     * Or MmAllocateMappingAddress?
     890     */
     891    RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag);
    889892    return VERR_NOT_SUPPORTED;
    890893}
     
    892895
    893896DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
    894                                             RTR0PROCESS R0Process)
     897                                            RTR0PROCESS R0Process, const char *pszTag)
    895898{
    896899    /*
    897900     * ZeCreateSection(SEC_RESERVE) + ZwMapViewOfSection perhaps?
    898901     */
    899     RT_NOREF5(ppMem, R3PtrFixed, cb, uAlignment, R0Process);
     902    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    900903    return VERR_NOT_SUPPORTED;
    901904}
  • trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp

    r91479 r91480  
    264264
    265265
    266 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     266DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     267                                          const char *pszTag)
    267268{
    268269    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    269270
    270271    /* create the object. */
    271     PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     272    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_PHYS,
     273                                                           NULL, cb, pszTag);
    272274    if (!pMemOs2)
    273275        return VERR_NO_MEMORY;
     
    337339
    338340
    339 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    340 {
    341     RT_NOREF(ppMem, pvFixed, cb, uAlignment);
     341DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     342                                              const char *pszTag)
     343{
     344    RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag);
    342345    return VERR_NOT_SUPPORTED;
    343346}
     
    345348
    346349DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
    347                                             RTR0PROCESS R0Process)
    348 {
    349     RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process);
     350                                            RTR0PROCESS R0Process, const char *pszTag)
     351{
     352    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    350353    return VERR_NOT_SUPPORTED;
    351354}
  • trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c

    r91479 r91480  
    836836
    837837
    838 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     838DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy,
     839                                          const char *pszTag)
    839840{
    840841    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    841842
    842843    /* Create the object. */
    843     PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);
     844    PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag);
    844845    if (!pMemSolaris)
    845846        return VERR_NO_MEMORY;
     
    919920
    920921
    921 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
     922DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment,
     923                                              const char *pszTag)
    922924{
    923925    PRTR0MEMOBJSOL  pMemSolaris;
     
    932934
    933935    /* Create the object. */
    934     pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);
     936    pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag);
    935937    if (!pMemSolaris)
    936938    {
     
    947949
    948950DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment,
    949                                             RTR0PROCESS R0Process)
    950 {
     951                                            RTR0PROCESS R0Process, const char *pszTag)
     952{
     953    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
    951954    return VERR_NOT_SUPPORTED;
    952955}
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