Changeset 91482 in vbox for trunk/src/VBox/Runtime/r0drv/freebsd
- Timestamp:
- Sep 30, 2021 12:12:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
r91481 r91482 506 506 static int rtR0MemObjNativeLockInMap(PPRTR0MEMOBJINTERNAL ppMem, vm_map_t pVmMap, 507 507 vm_offset_t AddrStart, size_t cb, uint32_t fAccess, 508 RTR0PROCESS R0Process, int fFlags )508 RTR0PROCESS R0Process, int fFlags, const char *pszTag) 509 509 { 510 510 int rc; … … 513 513 /* create the object. */ 514 514 PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_LOCK, 515 (void *)AddrStart, cb, NULL);515 (void *)AddrStart, cb, pszTag); 516 516 if (!pMemFreeBSD) 517 517 return VERR_NO_MEMORY; … … 536 536 537 537 538 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process) 538 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, 539 RTR0PROCESS R0Process, const char *pszTag) 539 540 { 540 541 return rtR0MemObjNativeLockInMap(ppMem, … … 544 545 fAccess, 545 546 R0Process, 546 VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES); 547 } 548 549 550 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess) 547 VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES, 548 pszTag); 549 } 550 551 552 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag) 551 553 { 552 554 return rtR0MemObjNativeLockInMap(ppMem, … … 556 558 fAccess, 557 559 NIL_RTR0PROCESS, 558 VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES); 560 VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES, 561 pszTag); 559 562 } 560 563
Note:
See TracChangeset
for help on using the changeset viewer.