VirtualBox

source: vbox/trunk/src/VBox/VMM/PDMAsyncCompletionFileInternal.h@ 23011

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

Fixes for async I/O manager

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 20.8 KB
Line 
1/* $Id: PDMAsyncCompletionFileInternal.h 22851 2009-09-08 23:38:47Z vboxsync $ */
2/** @file
3 * PDM Async I/O - Transport data asynchronous in R3 using EMT.
4 */
5
6/*
7 * Copyright (C) 2006-2008 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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ___PDMAsyncCompletionFileInternal_h
23#define ___PDMAsyncCompletionFileInternal_h
24
25#include <VBox/cfgm.h>
26#include <VBox/stam.h>
27#include <iprt/types.h>
28#include <iprt/file.h>
29#include <iprt/thread.h>
30#include <iprt/semaphore.h>
31#include <iprt/critsect.h>
32#include <iprt/avl.h>
33
34#include "PDMAsyncCompletionInternal.h"
35
36/** @todo: Revise the caching of tasks. We have currently four caches:
37 * Per endpoint task cache
38 * Per class cache
39 * Per endpoint task segment cache
40 * Per class task segment cache
41 *
42 * We could use the RT heap for this probably or extend MMR3Heap (uses RTMemAlloc
43 * instead of managing larger blocks) to have this global for the whole VM.
44 */
45
46RT_C_DECLS_BEGIN
47
48/**
49 * A few forward declerations.
50 */
51typedef struct PDMASYNCCOMPLETIONENDPOINTFILE *PPDMASYNCCOMPLETIONENDPOINTFILE;
52/** Pointer to a request segment. */
53typedef struct PDMACTASKFILE *PPDMACTASKFILE;
54/** Pointer to the endpoint class data. */
55typedef struct PDMASYNCCOMPLETIONTASKFILE *PPDMASYNCCOMPLETIONTASKFILE;
56/** Pointer to a cache LRU list. */
57typedef struct PDMACFILELRULIST *PPDMACFILELRULIST;
58/** Pointer to the global cache structure. */
59typedef struct PDMACFILECACHEGLOBAL *PPDMACFILECACHEGLOBAL;
60
61/**
62 * Blocking event types.
63 */
64typedef enum PDMACEPFILEAIOMGRBLOCKINGEVENT
65{
66 /** Invalid tye */
67 PDMACEPFILEAIOMGRBLOCKINGEVENT_INVALID = 0,
68 /** An endpoint is added to the manager. */
69 PDMACEPFILEAIOMGRBLOCKINGEVENT_ADD_ENDPOINT,
70 /** An endpoint is removed from the manager. */
71 PDMACEPFILEAIOMGRBLOCKINGEVENT_REMOVE_ENDPOINT,
72 /** An endpoint is about to be closed. */
73 PDMACEPFILEAIOMGRBLOCKINGEVENT_CLOSE_ENDPOINT,
74 /** The manager is requested to terminate */
75 PDMACEPFILEAIOMGRBLOCKINGEVENT_SHUTDOWN,
76 /** The manager is requested to suspend */
77 PDMACEPFILEAIOMGRBLOCKINGEVENT_SUSPEND,
78 /** The manager is requested to resume */
79 PDMACEPFILEAIOMGRBLOCKINGEVENT_RESUME,
80 /** 32bit hack */
81 PDMACEPFILEAIOMGRBLOCKINGEVENT_32BIT_HACK = 0x7fffffff
82} PDMACEPFILEAIOMGRBLOCKINGEVENT;
83
84/**
85 * States of the I/O manager.
86 */
87typedef enum PDMACEPFILEMGRSTATE
88{
89 /** Invalid state. */
90 PDMACEPFILEMGRSTATE_INVALID = 0,
91 /** Normal running state accepting new requests
92 * and processing them.
93 */
94 PDMACEPFILEMGRSTATE_RUNNING,
95 /** Fault state - not accepting new tasks for endpoints but waiting for
96 * remaining ones to finish.
97 */
98 PDMACEPFILEMGRSTATE_FAULT,
99 /** Suspending state - not accepting new tasks for endpoints but waiting
100 * for remaining ones to finish.
101 */
102 PDMACEPFILEMGRSTATE_SUSPENDING,
103 /** Shutdown state - not accepting new tasks for endpoints but waiting
104 * for remaining ones to finish.
105 */
106 PDMACEPFILEMGRSTATE_SHUTDOWN,
107 /** 32bit hack */
108 PDMACEPFILEMGRSTATE_32BIT_HACK = 0x7fffffff
109} PDMACEPFILEMGRSTATE;
110
111/**
112 * State of a async I/O manager.
113 */
114typedef struct PDMACEPFILEMGR
115{
116 /** Next Aio manager in the list. */
117 R3PTRTYPE(struct PDMACEPFILEMGR *) pNext;
118 /** Previous Aio manager in the list. */
119 R3PTRTYPE(struct PDMACEPFILEMGR *) pPrev;
120 /** Current state of the manager. */
121 PDMACEPFILEMGRSTATE enmState;
122 /** Event semaphore the manager sleeps on when waiting for new requests. */
123 RTSEMEVENT EventSem;
124 /** Flag whether the thread waits in the event semaphore. */
125 volatile bool fWaitingEventSem;
126 /** Flag whether this manager uses the failsafe method. */
127 bool fFailsafe;
128 /** Thread data */
129 RTTHREAD Thread;
130 /** The async I/O context for this manager. */
131 RTFILEAIOCTX hAioCtx;
132 /** Flag whether the I/O manager was woken up. */
133 volatile bool fWokenUp;
134 /** List of endpoints assigned to this manager. */
135 R3PTRTYPE(PPDMASYNCCOMPLETIONENDPOINTFILE) pEndpointsHead;
136 /** Number of endpoints assigned to the manager. */
137 unsigned cEndpoints;
138 /** Number of requests active currently. */
139 unsigned cRequestsActive;
140 /** Pointer to an array of free async I/O request handles. */
141 RTFILEAIOREQ *pahReqsFree;
142 /** Next free position for a free request handle. */
143 unsigned iFreeEntryNext;
144 /** Position of the next free task handle */
145 unsigned iFreeReqNext;
146 /** Size of the array. */
147 unsigned cReqEntries;
148 /** Critical section protecting the blocking event handling. */
149 RTCRITSECT CritSectBlockingEvent;
150 /** Event sempahore for blocking external events.
151 * The caller waits on it until the async I/O manager
152 * finished processing the event. */
153 RTSEMEVENT EventSemBlock;
154 /** Flag whether a blocking event is pending and needs
155 * processing by the I/O manager. */
156 volatile bool fBlockingEventPending;
157 /** Blocking event type */
158 volatile PDMACEPFILEAIOMGRBLOCKINGEVENT enmBlockingEvent;
159 /** Event type data */
160 union
161 {
162 /** Add endpoint event. */
163 struct
164 {
165 /** The endpoint to be added */
166 volatile PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint;
167 } AddEndpoint;
168 /** Remove endpoint event. */
169 struct
170 {
171 /** The endpoint to be removed */
172 volatile PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint;
173 } RemoveEndpoint;
174 /** Close endpoint event. */
175 struct
176 {
177 /** The endpoint to be closed */
178 volatile PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint;
179 } CloseEndpoint;
180 } BlockingEventData;
181} PDMACEPFILEMGR;
182/** Pointer to a async I/O manager state. */
183typedef PDMACEPFILEMGR *PPDMACEPFILEMGR;
184/** Pointer to a async I/O manager state pointer. */
185typedef PPDMACEPFILEMGR *PPPDMACEPFILEMGR;
186
187/**
188 * Data for one request segment waiting for cache entry.
189 */
190typedef struct PDMACFILETASKSEG
191{
192 /** Next task segment in the list. */
193 struct PDMACFILETASKSEG *pNext;
194 /** Task this segment is for. */
195 PPDMASYNCCOMPLETIONTASKFILE pTask;
196 /** Offset into the cache entry buffer to start reading from. */
197 uint32_t uBufOffset;
198 /** Number of bytes to transfer. */
199 size_t cbTransfer;
200 /** Pointer to the buffer. */
201 void *pvBuf;
202 /** Flag whether this entry writes data to the cache. */
203 bool fWrite;
204} PDMACFILETASKSEG, *PPDMACFILETASKSEG;
205
206/**
207 * A cache entry
208 */
209typedef struct PDMACFILECACHEENTRY
210{
211 /** The AVL entry data. */
212 AVLRFOFFNODECORE Core;
213 /** Pointer to the previous element. Used in one of the LRU lists.*/
214 struct PDMACFILECACHEENTRY *pPrev;
215 /** Pointer to the next element. Used in one of the LRU lists.*/
216 struct PDMACFILECACHEENTRY *pNext;
217 /** Pointer to the list the entry is in. */
218 PPDMACFILELRULIST pList;
219 /** Pointer to the global cache structure. */
220 PPDMACFILECACHEGLOBAL pCache;
221 /** Endpoint the entry belongs to. */
222 PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint;
223 /** Flags for this entry. Combinations of PDMACFILECACHE_* #defines */
224 uint32_t fFlags;
225 /** Reference counter. Prevents eviction of the entry if > 0. */
226 volatile uint32_t cRefs;
227 /** Size of the entry. */
228 size_t cbData;
229 /** Pointer to the memory containing the data. */
230 uint8_t *pbData;
231 /** List of tasks waiting for this one to finish. */
232 PPDMACFILETASKSEG pHead;
233} PDMACFILECACHEENTRY, *PPDMACFILECACHEENTRY;
234/** I/O is still in progress for this entry. This entry is not evictable. */
235#define PDMACFILECACHE_ENTRY_IO_IN_PROGRESS RT_BIT(0)
236/** Entry is locked and thus not evictable. */
237#define PDMACFILECACHE_ENTRY_LOCKED RT_BIT(1)
238/** Entry is dirty */
239#define PDMACFILECACHE_ENTRY_IS_DIRTY RT_BIT(2)
240/** Entry is not evictable. */
241#define PDMACFILECACHE_NOT_EVICTABLE (PDMACFILECACHE_ENTRY_LOCKED | PDMACFILECACHE_IO_IN_PROGRESS)
242
243/**
244 * LRU list data
245 */
246typedef struct PDMACFILELRULIST
247{
248 /** Head of the list. */
249 PPDMACFILECACHEENTRY pHead;
250 /** Tail of the list. */
251 PPDMACFILECACHEENTRY pTail;
252 /** Number of bytes cached in the list. */
253 uint32_t cbCached;
254} PDMACFILELRULIST;
255
256/**
257 * Global cache data.
258 */
259typedef struct PDMACFILECACHEGLOBAL
260{
261 /** Maximum size of the cache in bytes. */
262 uint32_t cbMax;
263 /** Current size of the cache in bytes. */
264 uint32_t cbCached;
265 /** Critical section protecting the cache. */
266 RTCRITSECT CritSect;
267 /** Adaption parameter (p) */
268 uint32_t uAdaptVal;
269 /** LRU list for recently used entries (T1) */
270 PDMACFILELRULIST LruRecentlyUsed;
271 /** LRU list for frequently used entries (T2) */
272 PDMACFILELRULIST LruFrequentlyUsed;
273 /** LRU list for recently evicted entries (B1) */
274 PDMACFILELRULIST LruRecentlyGhost;
275 /** LRU list for evicted entries from T2 (B2) */
276 PDMACFILELRULIST LruFrequentlyGhost;
277#ifdef VBOX_WITH_STATISTICS
278 /** Hit counter. */
279 STAMCOUNTER cHits;
280 /** Partial hit counter. */
281 STAMCOUNTER cPartialHits;
282 /** Miss counter. */
283 STAMCOUNTER cMisses;
284 /** Bytes read from cache. */
285 STAMCOUNTER StatRead;
286 /** Bytes written to the cache. */
287 STAMCOUNTER StatWritten;
288 /** Time spend to get an entry in the AVL tree. */
289 STAMPROFILEADV StatTreeGet;
290 /** Time spend to insert an entry in the AVL tree. */
291 STAMPROFILEADV StatTreeInsert;
292 /** Time spend to remove an entry in the AVL tree. */
293 STAMPROFILEADV StatTreeRemove;
294#endif
295} PDMACFILECACHEGLOBAL;
296
297/**
298 * Per endpoint cache data.
299 */
300typedef struct PDMACFILEENDPOINTCACHE
301{
302 /** AVL tree managing cache entries. */
303 PAVLRFOFFTREE pTree;
304 /** R/W semaphore protecting cached entries for this endpoint. */
305 RTSEMRW SemRWEntries;
306 /** Pointer to the gobal cache data */
307 PPDMACFILECACHEGLOBAL pCache;
308} PDMACFILEENDPOINTCACHE, *PPDMACFILEENDPOINTCACHE;
309
310/**
311 * Global data for the file endpoint class.
312 */
313typedef struct PDMASYNCCOMPLETIONEPCLASSFILE
314{
315 /** Common data. */
316 PDMASYNCCOMPLETIONEPCLASS Core;
317 /** Flag whether we use the failsafe method. */
318 bool fFailsafe;
319 /** Critical section protecting the list of async I/O managers. */
320 RTCRITSECT CritSect;
321 /** Pointer to the head of the async I/O managers. */
322 R3PTRTYPE(PPDMACEPFILEMGR) pAioMgrHead;
323 /** Number of async I/O managers currently running. */
324 unsigned cAioMgrs;
325 /** Maximum number of segments to cache per endpoint */
326 unsigned cTasksCacheMax;
327 /** Maximum number of simultaneous outstandingrequests. */
328 uint32_t cReqsOutstandingMax;
329 /** Bitmask for checking the alignment of a buffer. */
330 RTR3UINTPTR uBitmaskAlignment;
331 /** Global cache data. */
332 PDMACFILECACHEGLOBAL Cache;
333} PDMASYNCCOMPLETIONEPCLASSFILE;
334/** Pointer to the endpoint class data. */
335typedef PDMASYNCCOMPLETIONEPCLASSFILE *PPDMASYNCCOMPLETIONEPCLASSFILE;
336
337typedef enum PDMACEPFILEBLOCKINGEVENT
338{
339 /** The invalid event type */
340 PDMACEPFILEBLOCKINGEVENT_INVALID = 0,
341 /** A task is about to be canceled */
342 PDMACEPFILEBLOCKINGEVENT_CANCEL,
343 /** Usual 32bit hack */
344 PDMACEPFILEBLOCKINGEVENT_32BIT_HACK = 0x7fffffff
345} PDMACEPFILEBLOCKINGEVENT;
346
347/**
348 * States of the endpoint.
349 */
350typedef enum PDMASYNCCOMPLETIONENDPOINTFILESTATE
351{
352 /** Invalid state. */
353 PDMASYNCCOMPLETIONENDPOINTFILESTATE_INVALID = 0,
354 /** Normal running state accepting new requests
355 * and processing them.
356 */
357 PDMASYNCCOMPLETIONENDPOINTFILESTATE_ACTIVE,
358 /** The endpoint is about to be closed - not accepting new tasks for endpoints but waiting for
359 * remaining ones to finish.
360 */
361 PDMASYNCCOMPLETIONENDPOINTFILESTATE_CLOSING,
362 /** Removing from current I/O manager state - not processing new tasks for endpoints but waiting
363 * for remaining ones to finish.
364 */
365 PDMASYNCCOMPLETIONENDPOINTFILESTATE_REMOVING,
366 /** The current endpoint will be migrated to another I/O manager. */
367 PDMASYNCCOMPLETIONENDPOINTFILESTATE_MIGRATING,
368 /** 32bit hack */
369 PDMASYNCCOMPLETIONENDPOINTFILESTATE_32BIT_HACK = 0x7fffffff
370} PDMASYNCCOMPLETIONENDPOINTFILESTATE;
371
372/**
373 * Data for the file endpoint.
374 */
375typedef struct PDMASYNCCOMPLETIONENDPOINTFILE
376{
377 /** Common data. */
378 PDMASYNCCOMPLETIONENDPOINT Core;
379 /** Current state of the endpoint. */
380 PDMASYNCCOMPLETIONENDPOINTFILESTATE enmState;
381 /** async I/O manager this endpoint is assigned to. */
382 R3PTRTYPE(volatile PPDMACEPFILEMGR) pAioMgr;
383 /** Flags for opening the file. */
384 unsigned fFlags;
385 /** File handle. */
386 RTFILE File;
387 /** Size of the underlying file.
388 * Updated while data is appended. */
389 volatile uint64_t cbFile;
390 /** Flag whether caching is enabled for this file. */
391 bool fCaching;
392 /** Flag whether the file was opened readonly. */
393 bool fReadonly;
394 /** List of new tasks. */
395 R3PTRTYPE(volatile PPDMACTASKFILE) pTasksNewHead;
396
397 /** Head of the small cache for allocated task segments for exclusive
398 * use by this endpoint. */
399 R3PTRTYPE(volatile PPDMACTASKFILE) pTasksFreeHead;
400 /** Tail of the small cache for allocated task segments for exclusive
401 * use by this endpoint. */
402 R3PTRTYPE(volatile PPDMACTASKFILE) pTasksFreeTail;
403 /** Number of elements in the cache. */
404 volatile uint32_t cTasksCached;
405
406 /** Cache of endpoint data. */
407 PDMACFILEENDPOINTCACHE DataCache;
408
409 /** Flag whether a flush request is currently active */
410 PPDMACTASKFILE pFlushReq;
411
412 /** Event sempahore for blocking external events.
413 * The caller waits on it until the async I/O manager
414 * finished processing the event. */
415 RTSEMEVENT EventSemBlock;
416 /** Flag whether a blocking event is pending and needs
417 * processing by the I/O manager. */
418 bool fBlockingEventPending;
419 /** Blocking event type */
420 PDMACEPFILEBLOCKINGEVENT enmBlockingEvent;
421 /** Additional data needed for the event types. */
422 union
423 {
424 /** Cancelation event. */
425 struct
426 {
427 /** The task to cancel. */
428 PPDMACTASKFILE pTask;
429 } Cancel;
430 } BlockingEventData;
431 /** Data for exclusive use by the assigned async I/O manager. */
432 struct
433 {
434 /** Pointer to the next endpoint assigned to the manager. */
435 R3PTRTYPE(PPDMASYNCCOMPLETIONENDPOINTFILE) pEndpointNext;
436 /** Pointer to the previous endpoint assigned to the manager. */
437 R3PTRTYPE(PPDMASYNCCOMPLETIONENDPOINTFILE) pEndpointPrev;
438 /** List of pending requests (not submitted due to usage restrictions
439 * or a pending flush request) */
440 R3PTRTYPE(PPDMACTASKFILE) pReqsPendingHead;
441 /** Tail of pending requests. */
442 R3PTRTYPE(PPDMACTASKFILE) pReqsPendingTail;
443 /** Number of requests currently being processed for this endpoint
444 * (excluded flush requests). */
445 unsigned cRequestsActive;
446 /** Number of requests processed during the last second. */
447 unsigned cReqsPerSec;
448 /** Current number of processed requests for the current update period. */
449 unsigned cReqsProcessed;
450 /** Flag whether the endpoint is about to be moved to another manager. */
451 bool fMoving;
452 /** Destination I/O manager. */
453 PPDMACEPFILEMGR pAioMgrDst;
454 } AioMgr;
455} PDMASYNCCOMPLETIONENDPOINTFILE;
456/** Pointer to the endpoint class data. */
457typedef PDMASYNCCOMPLETIONENDPOINTFILE *PPDMASYNCCOMPLETIONENDPOINTFILE;
458
459/** Request completion function */
460typedef DECLCALLBACK(void) FNPDMACTASKCOMPLETED(PPDMACTASKFILE pTask, void *pvUser);
461/** Pointer to a request completion function. */
462typedef FNPDMACTASKCOMPLETED *PFNPDMACTASKCOMPLETED;
463
464/**
465 * Transfer type.
466 */
467typedef enum PDMACTASKFILETRANSFER
468{
469 /** Invalid. */
470 PDMACTASKFILETRANSFER_INVALID = 0,
471 /** Read transfer. */
472 PDMACTASKFILETRANSFER_READ,
473 /** Write transfer. */
474 PDMACTASKFILETRANSFER_WRITE,
475 /** Flush transfer. */
476 PDMACTASKFILETRANSFER_FLUSH
477} PDMACTASKFILETRANSFER;
478
479/**
480 * Data of a request.
481 */
482typedef struct PDMACTASKFILE
483{
484 /** next task in the list. */
485 struct PDMACTASKFILE *pNext;
486 /** Endpoint */
487 PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint;
488 /** Transfer type. */
489 PDMACTASKFILETRANSFER enmTransferType;
490 /** Start offset */
491 RTFOFF Off;
492 /** Data segment. */
493 PDMDATASEG DataSeg;
494 /** Flag whether this segment uses a bounce buffer
495 * because the provided buffer doesn't meet host requirements. */
496 bool fBounceBuffer;
497 /** Pointer to the used bounce buffer if any. */
498 void *pvBounceBuffer;
499 /** Start offset in the bounce buffer to copy from. */
500 uint32_t uBounceBufOffset;
501 /** Flag whether this is a prefetch request. */
502 bool fPrefetch;
503 /** Completion function to call on completion. */
504 PFNPDMACTASKCOMPLETED pfnCompleted;
505 /** User data */
506 void *pvUser;
507} PDMACTASKFILE;
508
509/**
510 * Per task data.
511 */
512typedef struct PDMASYNCCOMPLETIONTASKFILE
513{
514 /** Common data. */
515 PDMASYNCCOMPLETIONTASK Core;
516 /** Number of bytes to transfer until this task completes. */
517 volatile int32_t cbTransferLeft;
518 /** Flag whether the task completed. */
519 volatile bool fCompleted;
520} PDMASYNCCOMPLETIONTASKFILE;
521
522int pdmacFileAioMgrFailsafe(RTTHREAD ThreadSelf, void *pvUser);
523int pdmacFileAioMgrNormal(RTTHREAD ThreadSelf, void *pvUser);
524
525int pdmacFileAioMgrNormalInit(PPDMACEPFILEMGR pAioMgr);
526void pdmacFileAioMgrNormalDestroy(PPDMACEPFILEMGR pAioMgr);
527
528int pdmacFileAioMgrCreate(PPDMASYNCCOMPLETIONEPCLASSFILE pEpClass, PPPDMACEPFILEMGR ppAioMgr);
529
530int pdmacFileAioMgrAddEndpoint(PPDMACEPFILEMGR pAioMgr, PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint);
531
532PPDMACTASKFILE pdmacFileEpGetNewTasks(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint);
533PPDMACTASKFILE pdmacFileTaskAlloc(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint);
534void pdmacFileTaskFree(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint,
535 PPDMACTASKFILE pTask);
536
537int pdmacFileEpAddTask(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint, PPDMACTASKFILE pTask);
538
539void pdmacFileEpTaskCompleted(PPDMACTASKFILE pTask, void *pvUser);
540
541int pdmacFileCacheInit(PPDMASYNCCOMPLETIONEPCLASSFILE pClassFile, PCFGMNODE pCfgNode);
542void pdmacFileCacheDestroy(PPDMASYNCCOMPLETIONEPCLASSFILE pClassFile);
543int pdmacFileEpCacheInit(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint, PPDMASYNCCOMPLETIONEPCLASSFILE pClassFile);
544void pdmacFileEpCacheDestroy(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint);
545
546int pdmacFileEpCacheRead(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint, PPDMASYNCCOMPLETIONTASKFILE pTask,
547 RTFOFF off, PCPDMDATASEG paSegments, size_t cSegments,
548 size_t cbRead);
549int pdmacFileEpCacheWrite(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint, PPDMASYNCCOMPLETIONTASKFILE pTask,
550 RTFOFF off, PCPDMDATASEG paSegments, size_t cSegments,
551 size_t cbWrite);
552
553RT_C_DECLS_END
554
555#endif
556
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