VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h@ 25465

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

SUPDrv,++: Made SUPDrv.c platform agnostic and renamed SUPDrvAgnostic.c to SUPDrvSem.c. dprintf and dprintf2 are no more (Log/Log2), while OSDBGPRINT simply calls SUPR0Printf.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 21.6 KB
Line 
1/* $Revision: 25465 $ */
2/** @file
3 * VirtualBox Support Driver - Internal header.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 *
26 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27 * Clara, CA 95054 USA or visit http://www.sun.com if you need
28 * additional information or have any questions.
29 */
30
31#ifndef ___SUPDrvInternal_h
32#define ___SUPDrvInternal_h
33
34
35/*******************************************************************************
36* Header Files *
37*******************************************************************************/
38#include <VBox/cdefs.h>
39#include <VBox/types.h>
40#include <iprt/assert.h>
41#include <iprt/asm.h>
42#include <VBox/sup.h>
43#include <iprt/memobj.h>
44#include <iprt/time.h>
45#include <iprt/timer.h>
46#include <iprt/string.h>
47#include <iprt/err.h>
48
49#ifdef SUPDRV_AGNOSTIC
50/* do nothing */
51
52#elif defined(RT_OS_WINDOWS)
53 RT_C_DECLS_BEGIN
54# if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
55# define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap
56# define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
57# define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap
58# define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
59# define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap
60# define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap
61# define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap
62# define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap
63# pragma warning(disable : 4163)
64# include <ntddk.h>
65# pragma warning(default : 4163)
66# undef _InterlockedExchange
67# undef _InterlockedExchangeAdd
68# undef _InterlockedCompareExchange
69# undef _InterlockedAddLargeStatistic
70# undef _interlockedbittestandset
71# undef _interlockedbittestandreset
72# undef _interlockedbittestandset64
73# undef _interlockedbittestandreset64
74# else
75# include <ntddk.h>
76# endif
77# include <memory.h>
78# define memcmp(a,b,c) mymemcmp(a,b,c)
79 int VBOXCALL mymemcmp(const void *, const void *, size_t);
80 RT_C_DECLS_END
81
82#elif defined(RT_OS_LINUX)
83# include <linux/autoconf.h>
84# include <linux/version.h>
85# if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
86# define MODVERSIONS
87# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 71)
88# include <linux/modversions.h>
89# endif
90# endif
91# if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0)
92# undef ALIGN
93# endif
94# ifndef KBUILD_STR
95# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
96# define KBUILD_STR(s) s
97# else
98# define KBUILD_STR(s) #s
99# endif
100# endif
101# include <linux/string.h>
102# include <linux/spinlock.h>
103# include <linux/slab.h>
104# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
105# include <linux/semaphore.h>
106# else /* older kernels */
107# include <asm/semaphore.h>
108# endif /* older kernels */
109# include <linux/timer.h>
110
111# if 0
112# include <linux/hrtimer.h>
113# define VBOX_HRTIMER
114# endif
115
116#elif defined(RT_OS_DARWIN)
117# include <libkern/libkern.h>
118# include <iprt/string.h>
119
120#elif defined(RT_OS_OS2)
121
122#elif defined(RT_OS_FREEBSD)
123# define memset libkern_memset /** @todo these are just hacks to get it compiling, check out later. */
124# define memcmp libkern_memcmp
125# define strchr libkern_strchr
126# define strrchr libkern_strrchr
127# define ffsl libkern_ffsl
128# define fls libkern_fls
129# define flsl libkern_flsl
130# include <sys/libkern.h>
131# undef memset
132# undef memcmp
133# undef strchr
134# undef strrchr
135# undef ffs
136# undef ffsl
137# undef fls
138# undef flsl
139# include <iprt/string.h>
140
141#elif defined(RT_OS_SOLARIS)
142# include <sys/cmn_err.h>
143# include <iprt/string.h>
144
145#else
146# error "unsupported OS."
147#endif
148
149#include "SUPDrvIOC.h"
150#include "SUPDrvIDC.h"
151
152
153
154/*******************************************************************************
155* Defined Constants And Macros *
156*******************************************************************************/
157/*
158 * Hardcoded cookies.
159 */
160#define BIRD 0x64726962 /* 'bird' */
161#define BIRD_INV 0x62697264 /* 'drib' */
162
163
164#ifdef RT_OS_WINDOWS
165/** Use a normal mutex for the loader so we remain at the same IRQL after
166 * taking it.
167 * @todo fix the mutex implementation on linux and make this the default. */
168# define SUPDRV_USE_MUTEX_FOR_LDR
169
170/** Use a normal mutex for the GIP so we remain at the same IRQL after
171 * taking it.
172 * @todo fix the mutex implementation on linux and make this the default. */
173# define SUPDRV_USE_MUTEX_FOR_GIP
174#endif
175
176
177/**
178 * OS debug print macro.
179 */
180#define OSDBGPRINT(a) SUPR0Printf a
181
182
183/** @name Context values for the per-session handle tables.
184 * The context value is used to distiguish between the different kinds of
185 * handles, making the handle table API do all the work.
186 * @{ */
187/** Handle context value for single release event handles. */
188#define SUPDRV_HANDLE_CTX_EVENT ((void *)(uintptr_t)(SUPDRVOBJTYPE_SEM_EVENT))
189/** Handle context value for multiple release event handles. */
190#define SUPDRV_HANDLE_CTX_EVENT_MULTI ((void *)(uintptr_t)(SUPDRVOBJTYPE_SEM_EVENT_MULTI))
191/** @} */
192
193
194/**
195 * Validates a session pointer.
196 *
197 * @returns true/false accordingly.
198 * @param pSession The session.
199 */
200#define SUP_IS_SESSION_VALID(pSession) \
201 ( VALID_PTR(pSession) \
202 && pSession->u32Cookie == BIRD_INV)
203
204
205/*******************************************************************************
206* Structures and Typedefs *
207*******************************************************************************/
208/** Pointer to the device extension. */
209typedef struct SUPDRVDEVEXT *PSUPDRVDEVEXT;
210
211
212/**
213 * Memory reference types.
214 */
215typedef enum
216{
217 /** Unused entry */
218 MEMREF_TYPE_UNUSED = 0,
219 /** Locked memory (r3 mapping only). */
220 MEMREF_TYPE_LOCKED,
221 /** Continous memory block (r3 and r0 mapping). */
222 MEMREF_TYPE_CONT,
223 /** Low memory block (r3 and r0 mapping). */
224 MEMREF_TYPE_LOW,
225 /** Memory block (r3 and r0 mapping). */
226 MEMREF_TYPE_MEM,
227 /** Locked memory (r3 mapping only) allocated by the support driver. */
228 MEMREF_TYPE_PAGE,
229 /** Blow the type up to 32-bit and mark the end. */
230 MEMREG_TYPE_32BIT_HACK = 0x7fffffff
231} SUPDRVMEMREFTYPE, *PSUPDRVMEMREFTYPE;
232
233
234/**
235 * Structure used for tracking memory a session
236 * references in one way or another.
237 */
238typedef struct SUPDRVMEMREF
239{
240 /** The memory object handle. */
241 RTR0MEMOBJ MemObj;
242 /** The ring-3 mapping memory object handle. */
243 RTR0MEMOBJ MapObjR3;
244 /** Type of memory. */
245 SUPDRVMEMREFTYPE eType;
246} SUPDRVMEMREF, *PSUPDRVMEMREF;
247
248
249/**
250 * Bundle of locked memory ranges.
251 */
252typedef struct SUPDRVBUNDLE
253{
254 /** Pointer to the next bundle. */
255 struct SUPDRVBUNDLE * volatile pNext;
256 /** Referenced memory. */
257 SUPDRVMEMREF aMem[64];
258 /** Number of entries used. */
259 uint32_t volatile cUsed;
260} SUPDRVBUNDLE, *PSUPDRVBUNDLE;
261
262
263/**
264 * Loaded image.
265 */
266typedef struct SUPDRVLDRIMAGE
267{
268 /** Next in chain. */
269 struct SUPDRVLDRIMAGE * volatile pNext;
270 /** Pointer to the image. */
271 void *pvImage;
272 /** Pointer to the allocated image buffer.
273 * pvImage is 32-byte aligned or it may governed by the native loader (this
274 * member is NULL then). */
275 void *pvImageAlloc;
276 /** Size of the image including the tables. This is mainly for verification
277 * of the load request. */
278 uint32_t cbImageWithTabs;
279 /** Size of the image. */
280 uint32_t cbImageBits;
281 /** The number of entries in the symbol table. */
282 uint32_t cSymbols;
283 /** Pointer to the symbol table. */
284 PSUPLDRSYM paSymbols;
285 /** The offset of the string table. */
286 char *pachStrTab;
287 /** Size of the string table. */
288 uint32_t cbStrTab;
289 /** Pointer to the optional module initialization callback. */
290 PFNR0MODULEINIT pfnModuleInit;
291 /** Pointer to the optional module termination callback. */
292 PFNR0MODULETERM pfnModuleTerm;
293 /** Service request handler. This is NULL for non-service modules. */
294 PFNSUPR0SERVICEREQHANDLER pfnServiceReqHandler;
295 /** The ldr image state. (IOCtl code of last opration.) */
296 uint32_t uState;
297 /** Usage count. */
298 uint32_t volatile cUsage;
299#ifdef RT_OS_WINDOWS
300 /** The section object for the loaded image (fNative=true). */
301 void *pvNtSectionObj;
302 /** Lock object. */
303 RTR0MEMOBJ hMemLock;
304#endif
305 /** Whether it's loaded by the native loader or not. */
306 bool fNative;
307 /** Image name. */
308 char szName[32];
309} SUPDRVLDRIMAGE, *PSUPDRVLDRIMAGE;
310
311
312/** Image usage record. */
313typedef struct SUPDRVLDRUSAGE
314{
315 /** Next in chain. */
316 struct SUPDRVLDRUSAGE * volatile pNext;
317 /** The image. */
318 PSUPDRVLDRIMAGE pImage;
319 /** Load count. */
320 uint32_t volatile cUsage;
321} SUPDRVLDRUSAGE, *PSUPDRVLDRUSAGE;
322
323
324/**
325 * Component factory registration record.
326 */
327typedef struct SUPDRVFACTORYREG
328{
329 /** Pointer to the next registration. */
330 struct SUPDRVFACTORYREG *pNext;
331 /** Pointer to the registered factory. */
332 PCSUPDRVFACTORY pFactory;
333 /** The session owning the factory.
334 * Used for deregistration and session cleanup. */
335 PSUPDRVSESSION pSession;
336 /** Length of the name. */
337 size_t cchName;
338} SUPDRVFACTORYREG;
339/** Pointer to a component factory registration record. */
340typedef SUPDRVFACTORYREG *PSUPDRVFACTORYREG;
341/** Pointer to a const component factory registration record. */
342typedef SUPDRVFACTORYREG const *PCSUPDRVFACTORYREG;
343
344
345/**
346 * Registered object.
347 * This takes care of reference counting and tracking data for access checks.
348 */
349typedef struct SUPDRVOBJ
350{
351 /** Magic value (SUPDRVOBJ_MAGIC). */
352 uint32_t u32Magic;
353 /** The object type. */
354 SUPDRVOBJTYPE enmType;
355 /** Pointer to the next in the global list. */
356 struct SUPDRVOBJ * volatile pNext;
357 /** Pointer to the object destructor.
358 * This may be set to NULL if the image containing the destructor get unloaded. */
359 PFNSUPDRVDESTRUCTOR pfnDestructor;
360 /** User argument 1. */
361 void *pvUser1;
362 /** User argument 2. */
363 void *pvUser2;
364 /** The total sum of all per-session usage. */
365 uint32_t volatile cUsage;
366 /** The creator user id. */
367 RTUID CreatorUid;
368 /** The creator group id. */
369 RTGID CreatorGid;
370 /** The creator process id. */
371 RTPROCESS CreatorProcess;
372} SUPDRVOBJ, *PSUPDRVOBJ;
373
374/** Magic number for SUPDRVOBJ::u32Magic. (Dame Agatha Mary Clarissa Christie). */
375#define SUPDRVOBJ_MAGIC 0x18900915
376/** Dead number magic for SUPDRVOBJ::u32Magic. */
377#define SUPDRVOBJ_MAGIC_DEAD 0x19760112
378
379/**
380 * The per-session object usage record.
381 */
382typedef struct SUPDRVUSAGE
383{
384 /** Pointer to the next in the list. */
385 struct SUPDRVUSAGE * volatile pNext;
386 /** Pointer to the object we're recording usage for. */
387 PSUPDRVOBJ pObj;
388 /** The usage count. */
389 uint32_t volatile cUsage;
390} SUPDRVUSAGE, *PSUPDRVUSAGE;
391
392
393/**
394 * Per session data.
395 * This is mainly for memory tracking.
396 */
397typedef struct SUPDRVSESSION
398{
399 /** Pointer to the device extension. */
400 PSUPDRVDEVEXT pDevExt;
401 /** Session Cookie. */
402 uint32_t u32Cookie;
403
404 /** The VM associated with the session. */
405 PVM pVM;
406 /** Handle table for IPRT semaphore wrapper APIs.
407 * Programmable from R0 and R3. */
408 RTHANDLETABLE hHandleTable;
409 /** Load usage records. (protected by SUPDRVDEVEXT::mtxLdr) */
410 PSUPDRVLDRUSAGE volatile pLdrUsage;
411
412 /** Spinlock protecting the bundles and the GIP members. */
413 RTSPINLOCK Spinlock;
414 /** The ring-3 mapping of the GIP (readonly). */
415 RTR0MEMOBJ GipMapObjR3;
416 /** Set if the session is using the GIP. */
417 uint32_t fGipReferenced;
418 /** Bundle of locked memory objects. */
419 SUPDRVBUNDLE Bundle;
420 /** List of generic usage records. (protected by SUPDRVDEVEXT::SpinLock) */
421 PSUPDRVUSAGE volatile pUsage;
422
423 /** The user id of the session. (Set by the OS part.) */
424 RTUID Uid;
425 /** The group id of the session. (Set by the OS part.) */
426 RTGID Gid;
427 /** The process (id) of the session. */
428 RTPROCESS Process;
429 /** Which process this session is associated with.
430 * This is NIL_RTR0PROCESS for kernel sessions and valid for user ones. */
431 RTR0PROCESS R0Process;
432#ifndef SUPDRV_AGNOSTIC
433# if defined(RT_OS_DARWIN)
434 /** Pointer to the associated org_virtualbox_SupDrvClient object. */
435 void *pvSupDrvClient;
436 /** Whether this session has been opened or not. */
437 bool fOpened;
438# endif
439# if defined(RT_OS_OS2)
440 /** The system file number of this session. */
441 uint16_t sfn;
442 uint16_t Alignment; /**< Alignment */
443# endif
444# if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) || defined(RT_OS_SOLARIS)
445 /** Pointer to the next session with the same hash. */
446 PSUPDRVSESSION pNextHash;
447# endif
448#endif /* !SUPDRV_AGNOSTIC */
449} SUPDRVSESSION;
450
451
452/**
453 * Device extension.
454 */
455typedef struct SUPDRVDEVEXT
456{
457 /** Spinlock to serialize the initialization, usage counting and objects. */
458 RTSPINLOCK Spinlock;
459
460 /** List of registered objects. Protected by the spinlock. */
461 PSUPDRVOBJ volatile pObjs;
462 /** List of free object usage records. */
463 PSUPDRVUSAGE volatile pUsageFree;
464
465 /** Global cookie. */
466 uint32_t u32Cookie;
467
468 /** The IDT entry number.
469 * Only valid if pIdtPatches is set. */
470 uint8_t volatile u8Idt;
471
472 /** Loader mutex.
473 * This protects pvVMMR0, pvVMMR0Entry, pImages and SUPDRVSESSION::pLdrUsage. */
474#ifdef SUPDRV_USE_MUTEX_FOR_LDR
475 RTSEMMUTEX mtxLdr;
476#else
477 RTSEMFASTMUTEX mtxLdr;
478#endif
479
480 /** VMM Module 'handle'.
481 * 0 if the code VMM isn't loaded and Idt are nops. */
482 void * volatile pvVMMR0;
483 /** VMMR0EntryInt() pointer. */
484 DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryInt, (PVM pVM, unsigned uOperation, void *pvArg));
485 /** VMMR0EntryFast() pointer. */
486 DECLR0CALLBACKMEMBER(void, pfnVMMR0EntryFast, (PVM pVM, VMCPUID idCpu, unsigned uOperation));
487 /** VMMR0EntryEx() pointer. */
488 DECLR0CALLBACKMEMBER(int, pfnVMMR0EntryEx, (PVM pVM, VMCPUID idCpu, unsigned uOperation, PSUPVMMR0REQHDR pReq, uint64_t u64Arg, PSUPDRVSESSION pSession));
489
490 /** Linked list of loaded code. */
491 PSUPDRVLDRIMAGE volatile pLdrImages;
492
493 /** GIP mutex.
494 * Any changes to any of the GIP members requires ownership of this mutex,
495 * except on driver init and termination. */
496#ifdef SUPDRV_USE_MUTEX_FOR_GIP
497 RTSEMMUTEX mtxGip;
498#else
499 RTSEMFASTMUTEX mtxGip;
500#endif
501 /** Pointer to the Global Info Page (GIP). */
502 PSUPGLOBALINFOPAGE pGip;
503 /** The physical address of the GIP. */
504 RTHCPHYS HCPhysGip;
505 /** Number of processes using the GIP.
506 * (The updates are suspend while cGipUsers is 0.)*/
507 uint32_t volatile cGipUsers;
508 /** The ring-0 memory object handle for the GIP page. */
509 RTR0MEMOBJ GipMemObj;
510 /** The GIP timer handle. */
511 PRTTIMER pGipTimer;
512 /** If non-zero we've successfully called RTTimerRequestSystemGranularity(). */
513 uint32_t u32SystemTimerGranularityGrant;
514 /** The CPU id of the GIP master.
515 * This CPU is responsible for the updating the common GIP data. */
516 RTCPUID volatile idGipMaster;
517
518 /** Component factory mutex.
519 * This protects pComponentFactoryHead and component factory querying. */
520 RTSEMFASTMUTEX mtxComponentFactory;
521 /** The head of the list of registered component factories. */
522 PSUPDRVFACTORYREG pComponentFactoryHead;
523
524#ifndef SUPDRV_AGNOSTIC
525# ifdef RT_OS_WINDOWS
526 /* Callback object returned by ExCreateCallback. */
527 PCALLBACK_OBJECT pObjPowerCallback;
528 /* Callback handle returned by ExRegisterCallback. */
529 PVOID hPowerCallback;
530# endif
531#endif
532} SUPDRVDEVEXT;
533
534
535RT_C_DECLS_BEGIN
536
537/*******************************************************************************
538* OS Specific Functions *
539*******************************************************************************/
540void VBOXCALL supdrvOSObjInitCreator(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession);
541bool VBOXCALL supdrvOSObjCanAccess(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession, const char *pszObjName, int *prc);
542bool VBOXCALL supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt);
543int VBOXCALL supdrvOSEnableVTx(bool fEnabled);
544
545/**
546 * Try open the image using the native loader.
547 *
548 * @returns IPRT status code.
549 * @retval VERR_NOT_SUPPORTED if native loading isn't supported.
550 *
551 * @param pDevExt The device globals.
552 * @param pImage The image handle. pvImage should be set on
553 * success, pvImageAlloc can also be set if
554 * appropriate.
555 * @param pszFilename The file name - UTF-8, may containg UNIX
556 * slashes on non-UNIX systems.
557 */
558int VBOXCALL supdrvOSLdrOpen(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage, const char *pszFilename);
559
560/**
561 * Validates an entry point address.
562 *
563 * Called before supdrvOSLdrLoad.
564 *
565 * @returns IPRT status code.
566 * @param pDevExt The device globals.
567 * @param pImage The image data (still in the open state).
568 * @param pv The address within the image.
569 * @param pbImageBits The image bits as loaded by ring-3.
570 */
571int VBOXCALL supdrvOSLdrValidatePointer(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage,
572 void *pv, const uint8_t *pbImageBits);
573
574/**
575 * Load the image.
576 *
577 * @returns IPRT status code.
578 * @param pDevExt The device globals.
579 * @param pImage The image data (up to date except for some
580 * entry point pointers).
581 * @param pbImageBits The image bits as loaded by ring-3.
582 */
583int VBOXCALL supdrvOSLdrLoad(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage, const uint8_t *pbImageBits);
584
585
586/**
587 * Unload the image.
588 *
589 * @param pDevExt The device globals.
590 * @param pImage The image data (mostly still valid).
591 */
592void VBOXCALL supdrvOSLdrUnload(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage);
593
594
595/*******************************************************************************
596* Shared Functions *
597*******************************************************************************/
598/* SUPDrv.c */
599int VBOXCALL supdrvIOCtl(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPREQHDR pReqHdr);
600int VBOXCALL supdrvIOCtlFast(uintptr_t uIOCtl, VMCPUID idCpu, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
601int VBOXCALL supdrvIDC(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPDRVIDCREQHDR pReqHdr);
602int VBOXCALL supdrvInitDevExt(PSUPDRVDEVEXT pDevExt);
603void VBOXCALL supdrvDeleteDevExt(PSUPDRVDEVEXT pDevExt);
604int VBOXCALL supdrvCreateSession(PSUPDRVDEVEXT pDevExt, bool fUser, PSUPDRVSESSION *ppSession);
605void VBOXCALL supdrvCloseSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
606void VBOXCALL supdrvCleanupSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
607
608RT_C_DECLS_END
609
610#endif
611
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