vbox的更動 36372 路徑 trunk/src/VBox/Runtime/r0drv
- 時間撮記:
- 2011-3-23 下午04:35:01 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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. */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器