Changeset 36372 in vbox for trunk/src/VBox
- Timestamp:
- Mar 23, 2011 4:35:01 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70719
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp
r33540 r36372 64 64 Assert(cbSelf >= sizeof(*pNew)); 65 65 Assert(cbSelf == (uint32_t)cbSelf); 66 AssertMsg(RT_ALIGN_Z(cb, PAGE_SIZE) == cb, ("%#zx\n", pMem->cb)); 66 67 67 68 /* … … 226 227 * Gets the size of a ring-0 memory object. 227 228 * 228 * @returns The address of the memory object. 229 * The returned value may differ from the one specified to the API creating the 230 * object because of alignment adjustments. The minimal alignment currently 231 * employed by any API is PAGE_SIZE, so the result can safely be shifted by 232 * PAGE_SHIFT to calculate a page count. 233 * 234 * @returns The object size. 229 235 * @returns 0 if the handle is invalid (asserts in strict builds) or if there isn't any mapping. 230 236 * @param MemObj The ring-0 memory object handle. … … 241 247 AssertMsgReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, ("%p: %#x\n", pMem, pMem->u32Magic), 0); 242 248 AssertMsgReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, ("%p: %d\n", pMem, pMem->enmType), 0); 249 AssertMsg(RT_ALIGN_Z(pMem->cb, PAGE_SIZE) == pMem->cb, ("%#zx\n", pMem->cb)); 243 250 244 251 /* return the size. */
Note:
See TracChangeset
for help on using the changeset viewer.