VirtualBox

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

Last change on this file since 38076 was 37249, checked in by vboxsync, 14 years ago

SUPDrv: solaris native loading tweaking.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 21.9 KB
Line 
1/* $Revision: 37249 $ */
2/** @file
3 * VirtualBox Support Driver - Internal header.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Oracle Corporation
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
27#ifndef ___SUPDrvInternal_h
28#define ___SUPDrvInternal_h
29
30
31/*******************************************************************************
32* Header Files *
33*******************************************************************************/
34#include <VBox/cdefs.h>
35#include <VBox/types.h>
36#include <iprt/assert.h>
37#include <VBox/sup.h>
38#include <iprt/memobj.h>
39#include <iprt/time.h>
40#include <iprt/timer.h>
41#include <iprt/string.h>
42#include <iprt/err.h>
43
44#ifdef SUPDRV_AGNOSTIC
45/* do nothing */
46
47#elif defined(RT_OS_WINDOWS)
48 RT_C_DECLS_BEGIN
49# if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
50# define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap
51# define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
52# define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap
53# define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
54# define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap
55# define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap
56# define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap
57# define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap
58# pragma warning(disable : 4163)
59# include <ntddk.h>
60# pragma warning(default : 4163)
61# undef _InterlockedExchange
62# undef _InterlockedExchangeAdd
63# undef _InterlockedCompareExchange
64# undef _InterlockedAddLargeStatistic
65# undef _interlockedbittestandset
66# undef _interlockedbittestandreset
67# undef _interlockedbittestandset64
68# undef _interlockedbittestandreset64
69# else
70# include <ntddk.h>
71# endif
72# include <memory.h>
73# define memcmp(a,b,c) mymemcmp(a,b,c)
74 int VBOXCALL mymemcmp(const void *, const void *, size_t);
75 RT_C_DECLS_END
76
77#elif defined(RT_OS_LINUX)
78# include <linux/version.h>
79# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
80# include <generated/autoconf.h>
81# else
82# ifndef AUTOCONF_INCLUDED
83# include <linux/autoconf.h>
84# endif
85# endif
86# if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
87# define MODVERSIONS
88# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 71)
89# include <linux/modversions.h>
90# endif
91# endif
92# if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0)
93# undef ALIGN
94# endif
95# ifndef KBUILD_STR
96# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16)
97# define KBUILD_STR(s) s
98# else
99# define KBUILD_STR(s) #s
100# endif
101# endif
102# include <linux/string.h>
103# include <linux/spinlock.h>
104# include <linux/slab.h>
105# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
106# include <linux/semaphore.h>
107# else /* older kernels */
108# include <asm/semaphore.h>
109# endif /* older kernels */
110# include <linux/timer.h>
111
112#elif defined(RT_OS_DARWIN)
113# include <libkern/libkern.h>
114# include <iprt/string.h>
115
116#elif defined(RT_OS_OS2)
117
118#elif defined(RT_OS_FREEBSD)
119# define memset libkern_memset /** @todo these are just hacks to get it compiling, check out later. */
120# define memcmp libkern_memcmp
121# define strchr libkern_strchr
122# define strrchr libkern_strrchr
123# define ffsl libkern_ffsl
124# define fls libkern_fls
125# define flsl libkern_flsl
126# include <sys/libkern.h>
127# undef memset
128# undef memcmp
129# undef strchr
130# undef strrchr
131# undef ffs
132# undef ffsl
133# undef fls
134# undef flsl
135# include <iprt/string.h>
136
137#elif defined(RT_OS_SOLARIS)
138# include <sys/cmn_err.h>
139# include <iprt/string.h>
140
141#else
142# error "unsupported OS."
143#endif
144
145#include "SUPDrvIOC.h"
146#include "SUPDrvIDC.h"
147
148
149
150/*******************************************************************************
151* Defined Constants And Macros *
152*******************************************************************************/
153/*
154 * Hardcoded cookies.
155 */
156#define BIRD 0x64726962 /* 'bird' */
157#define BIRD_INV 0x62697264 /* 'drib' */
158
159
160#ifdef RT_OS_WINDOWS
161/** Use a normal mutex for the loader so we remain at the same IRQL after
162 * taking it.
163 * @todo fix the mutex implementation on linux and make this the default. */
164# define SUPDRV_USE_MUTEX_FOR_LDR
165
166/** Use a normal mutex for the GIP so we remain at the same IRQL after
167 * taking it.
168 * @todo fix the mutex implementation on linux and make this the default. */
169# define SUPDRV_USE_MUTEX_FOR_GIP
170#endif
171
172
173/**
174 * OS debug print macro.
175 */
176#define OSDBGPRINT(a) SUPR0Printf a
177
178
179/** @name Context values for the per-session handle tables.
180 * The context value is used to distinguish between the different kinds of
181 * handles, making the handle table API do all the work.
182 * @{ */
183/** Handle context value for single release event handles. */
184#define SUPDRV_HANDLE_CTX_EVENT ((void *)(uintptr_t)(SUPDRVOBJTYPE_SEM_EVENT))
185/** Handle context value for multiple release event handles. */
186#define SUPDRV_HANDLE_CTX_EVENT_MULTI ((void *)(uintptr_t)(SUPDRVOBJTYPE_SEM_EVENT_MULTI))
187/** @} */
188
189
190/**
191 * Validates a session pointer.
192 *
193 * @returns true/false accordingly.
194 * @param pSession The session.
195 */
196#define SUP_IS_SESSION_VALID(pSession) \
197 ( VALID_PTR(pSession) \
198 && pSession->u32Cookie == BIRD_INV)
199
200
201/*******************************************************************************
202* Structures and Typedefs *
203*******************************************************************************/
204/** Pointer to the device extension. */
205typedef struct SUPDRVDEVEXT *PSUPDRVDEVEXT;
206
207
208/**
209 * Memory reference types.
210 */
211typedef enum
212{
213 /** Unused entry */
214 MEMREF_TYPE_UNUSED = 0,
215 /** Locked memory (r3 mapping only). */
216 MEMREF_TYPE_LOCKED,
217 /** Continuous memory block (r3 and r0 mapping). */
218 MEMREF_TYPE_CONT,
219 /** Low memory block (r3 and r0 mapping). */
220 MEMREF_TYPE_LOW,
221 /** Memory block (r3 and r0 mapping). */
222 MEMREF_TYPE_MEM,
223 /** Locked memory (r3 mapping only) allocated by the support driver. */
224 MEMREF_TYPE_PAGE,
225 /** Blow the type up to 32-bit and mark the end. */
226 MEMREF_TYPE_32BIT_HACK = 0x7fffffff
227} SUPDRVMEMREFTYPE, *PSUPDRVMEMREFTYPE;
228
229
230/**
231 * Structure used for tracking memory a session
232 * references in one way or another.
233 */
234typedef struct SUPDRVMEMREF
235{
236 /** The memory object handle. */
237 RTR0MEMOBJ MemObj;
238 /** The ring-3 mapping memory object handle. */
239 RTR0MEMOBJ MapObjR3;
240 /** Type of memory. */
241 SUPDRVMEMREFTYPE eType;
242} SUPDRVMEMREF, *PSUPDRVMEMREF;
243
244
245/**
246 * Bundle of locked memory ranges.
247 */
248typedef struct SUPDRVBUNDLE
249{
250 /** Pointer to the next bundle. */
251 struct SUPDRVBUNDLE * volatile pNext;
252 /** Referenced memory. */
253 SUPDRVMEMREF aMem[64];
254 /** Number of entries used. */
255 uint32_t volatile cUsed;
256} SUPDRVBUNDLE, *PSUPDRVBUNDLE;
257
258
259/**
260 * Loaded image.
261 */
262typedef struct SUPDRVLDRIMAGE
263{
264 /** Next in chain. */
265 struct SUPDRVLDRIMAGE * volatile pNext;
266 /** Pointer to the image. */
267 void *pvImage;
268 /** Pointer to the allocated image buffer.
269 * pvImage is 32-byte aligned or it may governed by the native loader (this
270 * member is NULL then). */
271 void *pvImageAlloc;
272 /** Size of the image including the tables. This is mainly for verification
273 * of the load request. */
274 uint32_t cbImageWithTabs;
275 /** Size of the image. */
276 uint32_t cbImageBits;
277 /** The number of entries in the symbol table. */
278 uint32_t cSymbols;
279 /** Pointer to the symbol table. */
280 PSUPLDRSYM paSymbols;
281 /** The offset of the string table. */
282 char *pachStrTab;
283 /** Size of the string table. */
284 uint32_t cbStrTab;
285 /** Pointer to the optional module initialization callback. */
286 PFNR0MODULEINIT pfnModuleInit;
287 /** Pointer to the optional module termination callback. */
288 PFNR0MODULETERM pfnModuleTerm;
289 /** Service request handler. This is NULL for non-service modules. */
290 PFNSUPR0SERVICEREQHANDLER pfnServiceReqHandler;
291 /** The ldr image state. (IOCtl code of last operation.) */
292 uint32_t uState;
293 /** Usage count. */
294 uint32_t volatile cUsage;
295#ifdef RT_OS_WINDOWS
296 /** The section object for the loaded image (fNative=true). */
297 void *pvNtSectionObj;
298 /** Lock object. */
299 RTR0MEMOBJ hMemLock;
300#endif
301#if defined(RT_OS_SOLARIS) && defined(VBOX_WITH_NATIVE_SOLARIS_LOADING)
302 /** The Solaris module ID. */
303 int idSolMod;
304 /** Pointer to the module control structure. */
305 struct modctl *pSolModCtl;
306#endif
307 /** Whether it's loaded by the native loader or not. */
308 bool fNative;
309 /** Image name. */
310 char szName[32];
311} SUPDRVLDRIMAGE, *PSUPDRVLDRIMAGE;
312
313
314/** Image usage record. */
315typedef struct SUPDRVLDRUSAGE
316{
317 /** Next in chain. */
318 struct SUPDRVLDRUSAGE * volatile pNext;
319 /** The image. */
320 PSUPDRVLDRIMAGE pImage;
321 /** Load count. */
322 uint32_t volatile cUsage;
323} SUPDRVLDRUSAGE, *PSUPDRVLDRUSAGE;
324
325
326/**
327 * Component factory registration record.
328 */
329typedef struct SUPDRVFACTORYREG
330{
331 /** Pointer to the next registration. */
332 struct SUPDRVFACTORYREG *pNext;
333 /** Pointer to the registered factory. */
334 PCSUPDRVFACTORY pFactory;
335 /** The session owning the factory.
336 * Used for deregistration and session cleanup. */
337 PSUPDRVSESSION pSession;
338 /** Length of the name. */
339 size_t cchName;
340} SUPDRVFACTORYREG;
341/** Pointer to a component factory registration record. */
342typedef SUPDRVFACTORYREG *PSUPDRVFACTORYREG;
343/** Pointer to a const component factory registration record. */
344typedef SUPDRVFACTORYREG const *PCSUPDRVFACTORYREG;
345
346
347/**
348 * Registered object.
349 * This takes care of reference counting and tracking data for access checks.
350 */
351typedef struct SUPDRVOBJ
352{
353 /** Magic value (SUPDRVOBJ_MAGIC). */
354 uint32_t u32Magic;
355 /** The object type. */
356 SUPDRVOBJTYPE enmType;
357 /** Pointer to the next in the global list. */
358 struct SUPDRVOBJ * volatile pNext;
359 /** Pointer to the object destructor.
360 * This may be set to NULL if the image containing the destructor get unloaded. */
361 PFNSUPDRVDESTRUCTOR pfnDestructor;
362 /** User argument 1. */
363 void *pvUser1;
364 /** User argument 2. */
365 void *pvUser2;
366 /** The total sum of all per-session usage. */
367 uint32_t volatile cUsage;
368 /** The creator user id. */
369 RTUID CreatorUid;
370 /** The creator group id. */
371 RTGID CreatorGid;
372 /** The creator process id. */
373 RTPROCESS CreatorProcess;
374} SUPDRVOBJ, *PSUPDRVOBJ;
375
376/** Magic number for SUPDRVOBJ::u32Magic. (Dame Agatha Mary Clarissa Christie). */
377#define SUPDRVOBJ_MAGIC 0x18900915
378/** Dead number magic for SUPDRVOBJ::u32Magic. */
379#define SUPDRVOBJ_MAGIC_DEAD 0x19760112
380
381/**
382 * The per-session object usage record.
383 */
384typedef struct SUPDRVUSAGE
385{
386 /** Pointer to the next in the list. */
387 struct SUPDRVUSAGE * volatile pNext;
388 /** Pointer to the object we're recording usage for. */
389 PSUPDRVOBJ pObj;
390 /** The usage count. */
391 uint32_t volatile cUsage;
392} SUPDRVUSAGE, *PSUPDRVUSAGE;
393
394
395/**
396 * Per session data.
397 * This is mainly for memory tracking.
398 */
399typedef struct SUPDRVSESSION
400{
401 /** Pointer to the device extension. */
402 PSUPDRVDEVEXT pDevExt;
403 /** Session Cookie. */
404 uint32_t u32Cookie;
405
406 /** The VM associated with the session. */
407 PVM pVM;
408 /** Handle table for IPRT semaphore wrapper APIs.
409 * Programmable from R0 and R3. */
410 RTHANDLETABLE hHandleTable;
411 /** Load usage records. (protected by SUPDRVDEVEXT::mtxLdr) */
412 PSUPDRVLDRUSAGE volatile pLdrUsage;
413
414 /** Spinlock protecting the bundles and the GIP members. */
415 RTSPINLOCK Spinlock;
416 /** The ring-3 mapping of the GIP (readonly). */
417 RTR0MEMOBJ GipMapObjR3;
418 /** Set if the session is using the GIP. */
419 uint32_t fGipReferenced;
420 /** Bundle of locked memory objects. */
421 SUPDRVBUNDLE Bundle;
422 /** List of generic usage records. (protected by SUPDRVDEVEXT::SpinLock) */
423 PSUPDRVUSAGE volatile pUsage;
424
425 /** The user id of the session. (Set by the OS part.) */
426 RTUID Uid;
427 /** The group id of the session. (Set by the OS part.) */
428 RTGID Gid;
429 /** The process (id) of the session. */
430 RTPROCESS Process;
431 /** Which process this session is associated with.
432 * This is NIL_RTR0PROCESS for kernel sessions and valid for user ones. */
433 RTR0PROCESS R0Process;
434#ifndef SUPDRV_AGNOSTIC
435# if defined(RT_OS_DARWIN)
436 /** Pointer to the associated org_virtualbox_SupDrvClient object. */
437 void *pvSupDrvClient;
438 /** Whether this session has been opened or not. */
439 bool fOpened;
440# endif
441# if defined(RT_OS_OS2)
442 /** The system file number of this session. */
443 uint16_t sfn;
444 uint16_t Alignment; /**< Alignment */
445# endif
446# if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) || defined(RT_OS_SOLARIS)
447 /** Pointer to the next session with the same hash. */
448 PSUPDRVSESSION pNextHash;
449# endif
450#endif /* !SUPDRV_AGNOSTIC */
451} SUPDRVSESSION;
452
453
454/**
455 * Device extension.
456 */
457typedef struct SUPDRVDEVEXT
458{
459 /** Spinlock to serialize the initialization, usage counting and objects. */
460 RTSPINLOCK Spinlock;
461
462 /** List of registered objects. Protected by the spinlock. */
463 PSUPDRVOBJ volatile pObjs;
464 /** List of free object usage records. */
465 PSUPDRVUSAGE volatile pUsageFree;
466
467 /** Global cookie. */
468 uint32_t u32Cookie;
469 /** The actual size of SUPDRVSESSION. (SUPDRV_AGNOSTIC) */
470 uint32_t cbSession;
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 containing 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). Adjust entrypoints
580 * and exports if necessary.
581 * @param pbImageBits The image bits as loaded by ring-3.
582 * @param pReq Pointer to the request packet so that the VMMR0
583 * entry points can be adjusted.
584 */
585int VBOXCALL supdrvOSLdrLoad(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage, const uint8_t *pbImageBits, PSUPLDRLOAD pReq);
586
587
588/**
589 * Unload the image.
590 *
591 * @param pDevExt The device globals.
592 * @param pImage The image data (mostly still valid).
593 */
594void VBOXCALL supdrvOSLdrUnload(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage);
595
596
597/*******************************************************************************
598* Shared Functions *
599*******************************************************************************/
600/* SUPDrv.c */
601int VBOXCALL supdrvIOCtl(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPREQHDR pReqHdr);
602int VBOXCALL supdrvIOCtlFast(uintptr_t uIOCtl, VMCPUID idCpu, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
603int VBOXCALL supdrvIDC(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPDRVIDCREQHDR pReqHdr);
604int VBOXCALL supdrvInitDevExt(PSUPDRVDEVEXT pDevExt, size_t cbSession);
605void VBOXCALL supdrvDeleteDevExt(PSUPDRVDEVEXT pDevExt);
606int VBOXCALL supdrvCreateSession(PSUPDRVDEVEXT pDevExt, bool fUser, PSUPDRVSESSION *ppSession);
607void VBOXCALL supdrvCloseSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
608void VBOXCALL supdrvCleanupSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
609
610RT_C_DECLS_END
611
612#endif
613
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