SysHlp.cpp revision a1acf53599841ef2a93775055b0c2242ab719562
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * VBoxGuestLib - A support library for VirtualBox guest additions:
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * Physical memory heap
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * Copyright (C) 2006-2007 innotek GmbH
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * This file is part of VirtualBox Open Source Edition (OSE), as
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * available from http://www.virtualbox.org. This file is free software;
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * you can redistribute it and/or modify it under the terms of the GNU
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * General Public License as published by the Free Software Foundation,
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * distribution. VirtualBox OSE is distributed in the hope that it will
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel * be useful, but WITHOUT ANY WARRANTY of any kind.
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller * If you received this file as part of a commercial VirtualBox
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller * distribution, then only the terms of your commercial VirtualBox
194cdefb77cf5217ac87c29c6412db51bd6b8c8dBrendan Mmiller * license agreement apply instead of the previous paragraph.
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmillerint vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size)
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel PMDL pMdl = IoAllocateMdl (pv, u32Size, FALSE, FALSE, NULL);
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller /* Calls to MmProbeAndLockPages must be enclosed in a try/except block. */
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller#endif /* __WIN__ */
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feaselvoid vbglUnlockLinear (void *pvCtx, void *pv, uint32_t u32Size)
0942ced8a2cc0c0f5fb5015ec53f81d5360ee79cJake Feasel#endif /* __WIN__ */
#ifndef VBGL_VBOXGUEST
# include <unistd.h>
# include <errno.h>
#ifndef __WIN__
# ifdef __cplusplus
# ifdef __cplusplus
#ifdef __WIN__
return VINF_SUCCESS;
return rc;
void *opaque;
if (!opaque)
return VERR_NOT_IMPLEMENTED;
return VINF_SUCCESS;
return VERR_NOT_IMPLEMENTED;
#ifdef __WIN__
&Event,
return VERR_NO_MEMORY;
NULL);
return VERR_NOT_IMPLEMENTED;
#ifdef __WIN__