VirtualBox

Changeset 64407 in vbox for trunk/include


Ignore:
Timestamp:
Oct 25, 2016 11:53:00 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111521
Message:

Devices/Storage: Add callback to query the actual transfer size of an I/O request if PDMIMEDIAEX is used, useful to calculate the amount of data transferred for requests where the transfer size can be different from the guest buffer size (e.g. SCSI)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmstorageifs.h

    r64274 r64407  
    731731
    732732    /**
     733     * Queries the residual amount of data not transfered when the request completed.
     734     *
     735     * @returns VBox status code.
     736     * @retval  VERR_PDM_MEDIAEX_IOREQ_INVALID_STATE has not completed yet.
     737     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     738     * @param   hIoReq          The I/O request.
     739     * @param   pcbXfer         Where to store the amount of resdiual data in bytes.
     740     * @thread  Any thread.
     741     *
     742     * @note For simple read/write requests this returns the amount to read/write as given to the
     743     *       PDMIMEDIAEX::pfnIoReqRead or PDMIMEDIAEX::pfnIoReqWrite call.
     744     *       For SCSI commands this returns the transfer size as given in the provided CDB.
     745     */
     746    DECLR3CALLBACKMEMBER(int, pfnIoReqQueryXferSize, (PPDMIMEDIAEX pInterface, PDMMEDIAEXIOREQ hIoReq, size_t *pcbXfer));
     747
     748    /**
    733749     * Cancels all I/O active requests.
    734750     *
     
    917933} PDMIMEDIAEX;
    918934/** PDMIMEDIAEX interface ID. */
    919 #define PDMIMEDIAEX_IID                      "134a5ba9-0d6c-443f-8619-14fea6caaa8d"
     935#define PDMIMEDIAEX_IID                      "1f82b709-a9f7-4928-ad50-e879c9bbeba1"
    920936
    921937/**
Note: See TracChangeset for help on using the changeset viewer.

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