VirtualBox

Changeset 44242 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 7, 2013 8:19:15 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83098
Message:

Storage: Next step in the sync/async I/O unification, change all calls to pfnRead/pfnWrite/pfnFlush to pfnAsyncRead/pfnAsyncWrite/pfnFlush

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs-internal.h

    r44233 r44242  
    381381    DECLR3CALLBACKMEMBER(void, pfnIoCtxCompleted, (void *pvUser, PVDIOCTX pIoCtx,
    382382                                                   int rcReq, size_t cbCompleted));
     383
     384    /**
     385     * Returns whether the given I/O context must be treated synchronously.
     386     *
     387     * @returns true if the I/O context must be processed synchronously
     388     *          false otherwise.
     389     * @param   pvUser         The opaque user data passed on container creation.
     390     * @param   pIoCtx         The I/O context.
     391     */
     392    DECLR3CALLBACKMEMBER(bool, pfnIoCtxIsSynchronous, (void *pvUser, PVDIOCTX pIoCtx));
     393
     394    /**
     395     * Returns whether the user buffer of the I/O context is complete zero
     396     * from to current position upto the given number of bytes.
     397     *
     398     * @returns true if the I/O context user buffer consists solely of zeros
     399     *          false otherwise.
     400     * @param   pvUser         The opaque user data passed on container creation.
     401     * @param   pIoCtx         The I/O context.
     402     * @param   cbCheck        Number of bytes to check for zeros.
     403     * @param   fAdvance       Flag whether to advance the buffer pointer if true
     404     *                         is returned.
     405     */
     406    DECLR3CALLBACKMEMBER(bool, pfnIoCtxIsZero, (void *pvUser, PVDIOCTX pIoCtx,
     407                                                size_t cbCheck, bool fAdvance));
     408
    383409} VDINTERFACEIOINT, *PVDINTERFACEIOINT;
    384410
     
    529555}
    530556
     557DECLINLINE(bool) vdIfIoIntIoCtxIsSynchronous(PVDINTERFACEIOINT pIfIoInt, PVDIOCTX pIoCtx)
     558{
     559    return pIfIoInt->pfnIoCtxIsSynchronous(pIfIoInt->Core.pvUser, pIoCtx);
     560}
     561
     562DECLINLINE(bool) vdIfIoIntIoCtxIsZero(PVDINTERFACEIOINT pIfIoInt, PVDIOCTX pIoCtx,
     563                                      size_t cbCheck, bool fAdvance)
     564{
     565    return pIfIoInt->pfnIoCtxIsZero(pIfIoInt->Core.pvUser, pIoCtx, cbCheck, fAdvance);
     566}
     567
     568
    531569RT_C_DECLS_END
    532570
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