Changeset 91482 in vbox for trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
- Timestamp:
- Sep 30, 2021 12:12:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
r91481 r91482 287 287 288 288 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, 289 RTR0PROCESS R0Process )289 RTR0PROCESS R0Process, const char *pszTag) 290 290 { 291 291 AssertMsgReturn(R0Process == RTR0ProcHandleSelf(), ("%p != %p\n", R0Process, RTR0ProcHandleSelf()), VERR_NOT_SUPPORTED); … … 294 294 const ULONG cPages = cb >> PAGE_SHIFT; 295 295 PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]), 296 RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, NULL);296 RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, pszTag); 297 297 if (!pMemOs2) 298 298 return VERR_NO_MEMORY; … … 316 316 317 317 318 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess )318 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag) 319 319 { 320 320 /* create the object. */ 321 321 const ULONG cPages = cb >> PAGE_SHIFT; 322 322 PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]), 323 RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);323 RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag); 324 324 if (!pMemOs2) 325 325 return VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.