VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp@ 22730

Last change on this file since 22730 was 21461, checked in by vboxsync, 15 years ago

VBoxGuestLib: Implemented detection of physical page list support.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/** @file
2 * VBoxGuestLibR0 - VMMDev device related functions.
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
17 * Clara, CA 95054 USA or visit http://www.sun.com if you need
18 * additional information or have any questions.
19 */
20
21#include "VBGLInternal.h"
22
23
24DECLVBGL(int) VbglQueryVMMDevMemory (VMMDevMemory **ppVMMDevMemory)
25{
26 int rc = vbglR0Enter ();
27
28 if (RT_FAILURE(rc))
29 return rc;
30
31 /* If the memory was not found, return an error. */
32 if (!g_vbgldata.pVMMDevMemory)
33 return VERR_NOT_SUPPORTED;
34
35 *ppVMMDevMemory = g_vbgldata.pVMMDevMemory;
36 return rc;
37}
38
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette