VirtualBox

Changeset 99964 in vbox for trunk


Ignore:
Timestamp:
May 25, 2023 1:16:18 AM (20 months ago)
Author:
vboxsync
Message:

VBox/types.h,pdmnetifs.h: Replaced PDMDATASEG with RTSGSEG since the two structures are identical. This should make it easy to create a RTSGBUF for a PDMSCATTERGATHER buffer (just limit the operations to cbUsed bytes). [scm fix]

File:
1 edited

Legend:

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

    r99962 r99964  
    5454/**
    5555 * PDM scatter/gather buffer.
    56  * 
    57  * @note    This is a little bit similar to the RTSGBUF structure in IPRT. 
    58  * 
     56 *
     57 * @note    This is a little bit similar to the RTSGBUF structure in IPRT.
     58 *
    5959 *          It is possible to reuse the PDMSCATTERGATHER::aSegs member here in a
    6060 *          RTSGBUF, but must always remember to specify
     
    6262 *          call, since the segments here will (normally) describe the full
    6363 *          PDMSCATTERGATHER::cbAvailable length.
    64  * 
     64 *
    6565 * @todo Promote this to VBox/types.h, VBox/vmm/pdmcommon.h or some such place.
    6666 */
     
    8484    /** Variable sized array of segments.
    8585     * This describes the max allocated buffer length, consumers must limit
    86      * operations to PDMSCATTERGATHER::cbUser. */ 
     86     * operations to PDMSCATTERGATHER::cbUser. */
    8787    RTSGSEG         aSegs[1];
    8888} PDMSCATTERGATHER;
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