VirtualBox

source: vbox/trunk/include/iprt/initterm.h@ 4394

Last change on this file since 4394 was 4071, checked in by vboxsync, 17 years ago

Biggest check-in ever. New source code headers for all (C) innotek files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/** @file
2 * innotek Portable Runtime - Runtime Init/Term.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
12 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13 * distribution. VirtualBox OSE is distributed in the hope that it will
14 * be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef ___iprt_initterm_h
18#define ___iprt_initterm_h
19
20#include <iprt/cdefs.h>
21#include <iprt/types.h>
22
23__BEGIN_DECLS
24
25/** @defgroup grp_rt innotek Portable Runtime APIs
26 * @{
27 */
28
29/** @defgroup grp_rt_initterm Init / Term
30 * @{
31 */
32
33#ifdef IN_RING3
34/**
35 * Initalizes the runtime library.
36 *
37 * @returns iprt status code.
38 *
39 * @param fInitSUPLib Set if SUPInit() shall be called during init (default).
40 * Clear if not to call it.
41 * @param cbReserve The number of bytes of contiguous memory that should be reserved by
42 * the runtime / support library.
43 * Set this to 0 if no reservation is required. (default)
44 * Set this to ~(size_t)0 if the maximum amount supported by the VM is to be
45 * attempted reserved, or the maximum available.
46 * This argument only applies if fInitSUPLib is true and we're in ring-3 HC.
47 */
48RTR3DECL(int) RTR3Init(
49#ifdef __cplusplus
50 bool fInitSUPLib = true,
51 size_t cbReserve = 0
52#else
53 bool fInitSUPLib,
54 size_t cbReserve
55#endif
56 );
57
58/**
59 * Terminates the runtime library.
60 */
61RTR3DECL(void) RTR3Term(void);
62#endif
63
64
65#ifdef IN_RING0
66/**
67 * Initalizes the ring-0 driver runtime library.
68 *
69 * @returns iprt status code.
70 * @param fReserved Flags reserved for the future.
71 */
72RTR0DECL(int) RTR0Init(unsigned fReserved);
73
74/**
75 * Terminates the ring-0 driver runtime library.
76 */
77RTR0DECL(void) RTR0Term(void);
78#endif
79
80#ifdef IN_GC
81/**
82 * Initalizes the guest context runtime library.
83 *
84 * @returns iprt status code.
85 *
86 * @param u64ProgramStartNanoTS The startup timestamp.
87 */
88RTGCDECL(int) RTGCInit(uint64_t u64ProgramStartNanoTS);
89
90/**
91 * Terminates the guest context runtime library.
92 */
93RTGCDECL(void) RTGCTerm(void);
94#endif
95
96
97/** @} */
98
99/** @} */
100
101__END_DECLS
102
103
104#endif
105
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