VirtualBox

Ignore:
Timestamp:
Sep 25, 2016 5:58:56 PM (8 years ago)
Author:
vboxsync
Message:

VSCSI,DrvSCSI: Switch to PDMIMEDIAEX instead of using PDMIMEDIAASYNC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSIInternal.h

    r62506 r63992  
    321321
    322322/**
     323 * Inits the I/O request related state for the LUN.
     324 *
     325 * @returns VBox status code.
     326 * @param   pVScsiLun    The LUN instance.
     327 */
     328int vscsiIoReqInit(PVSCSILUNINT pVScsiLun);
     329
     330/**
    323331 * Enqueues a new flush request
    324332 *
     
    364372
    365373/**
     374 * Wrapper for the set I/O request allocation size I/O callback.
     375 *
     376 * @returns VBox status code.
     377 * @param   pVScsiLun             The LUN.
     378 * @param   cbVScsiIoReqAlloc     The additional size for the request to allocate.
     379 */
     380DECLINLINE(int) vscsiLunReqAllocSizeSet(PVSCSILUNINT pVScsiLun, size_t cbVScsiIoReqAlloc)
     381{
     382    return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqAllocSizeSet(pVScsiLun,
     383                                                                       pVScsiLun->pvVScsiLunUser,
     384                                                                       cbVScsiIoReqAlloc);
     385}
     386
     387/**
     388 * Wrapper for the allocate I/O request I/O callback.
     389 *
     390 * @returns VBox status code.
     391 * @param   pVScsiLun             The LUN.
     392 * @param   u64Tag                A unique tag to assign to the request.
     393 * @param   ppVScsiIoReq          Where to store the pointer to the request on success.
     394 */
     395DECLINLINE(int) vscsiLunReqAlloc(PVSCSILUNINT pVScsiLun, uint64_t u64Tag, PVSCSIIOREQINT *ppVScsiIoReq)
     396{
     397    return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqAlloc(pVScsiLun,
     398                                                                pVScsiLun->pvVScsiLunUser,
     399                                                                u64Tag, ppVScsiIoReq);
     400}
     401
     402/**
     403 * Wrapper for the free I/O request I/O callback.
     404 *
     405 * @returns VBox status code.
     406 * @param   pVScsiLun   The LUN.
     407 * @param   pVScsiIoReq The request to free.
     408 */
     409DECLINLINE(int) vscsiLunReqFree(PVSCSILUNINT pVScsiLun, PVSCSIIOREQINT pVScsiIoReq)
     410{
     411    return pVScsiLun->pVScsiLunIoCallbacks->pfnVScsiLunReqFree(pVScsiLun,
     412                                                               pVScsiLun->pvVScsiLunUser,
     413                                                               pVScsiIoReq);
     414}
     415
     416/**
    366417 * Wrapper for the get medium size I/O callback.
    367418 *
Note: See TracChangeset for help on using the changeset viewer.

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