VirtualBox

Changeset 38876 in vbox for trunk/src/VBox/Storage/Debug


Ignore:
Timestamp:
Sep 27, 2011 9:03:15 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74198
Message:

Storage: Add async discard API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/Debug/VDDbgIoLog.cpp

    r38644 r38876  
    449449}
    450450
    451 VBOXDDU_DECL(int) VDDbgIoLogStartDiscard(VDIOLOGGER hIoLogger, bool fAsync, PVDRANGE paRanges, unsigned cRanges,
     451VBOXDDU_DECL(int) VDDbgIoLogStartDiscard(VDIOLOGGER hIoLogger, bool fAsync, PCRTRANGE paRanges, unsigned cRanges,
    452452                                         PVDIOLOGENT phIoLogEntry)
    453453{
     
    697697
    698698VBOXDDU_DECL(int) VDDbgIoLogEventGetStartDiscard(VDIOLOGGER hIoLogger, uint64_t *pidEvent, bool *pfAsync,
    699                                                  PVDRANGE *ppaRanges, unsigned *pcRanges)
     699                                                 PRTRANGE *ppaRanges, unsigned *pcRanges)
    700700{
    701701    int rc = VINF_SUCCESS;
     
    716716        if (RT_SUCCESS(rc))
    717717        {
    718             PVDRANGE paRanges = NULL;
     718            PRTRANGE paRanges = NULL;
    719719            IoLogEntryDiscard DiscardRange;
    720720
     
    724724            *pcRanges  = RT_LE2H_U32(Entry.Discard.cRanges);
    725725
    726             paRanges = (PVDRANGE)RTMemAllocZ(*pcRanges * sizeof(VDRANGE));
     726            paRanges = (PRTRANGE)RTMemAllocZ(*pcRanges * sizeof(RTRANGE));
    727727            if (paRanges)
    728728            {
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