Changeset 99962 in vbox
- Timestamp:
- May 24, 2023 11:27:39 PM (18 months ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/types.h
r99241 r99962 1016 1016 1017 1017 /** 1018 * Data transport buffer (scatter/gather)1019 */1020 typedef struct PDMDATASEG1021 {1022 /** Length of buffer in entry. */1023 size_t cbSeg;1024 /** Pointer to the start of the buffer. */1025 void *pvSeg;1026 } PDMDATASEG;1027 /** Pointer to a data transport segment. */1028 typedef PDMDATASEG *PPDMDATASEG;1029 /** Pointer to a const data transport segment. */1030 typedef PDMDATASEG const *PCPDMDATASEG;1031 1032 1033 /**1034 1018 * Forms of generic segment offloading. 1035 1019 */ -
trunk/include/VBox/vmm/pdmnetifs.h
r98103 r99962 41 41 42 42 #include <VBox/types.h> 43 #include <iprt/sg.h> 43 44 44 45 … … 53 54 /** 54 55 * PDM scatter/gather buffer. 55 * 56 * 57 * @note This is a little bit similar to the RTSGBUF structure in IPRT. 58 * 59 * It is possible to reuse the PDMSCATTERGATHER::aSegs member here in a 60 * RTSGBUF, but must always remember to specify 61 * PDMSCATTERGATHER::cbUsed as the max length to any RTSgBufXxxx API 62 * call, since the segments here will (normally) describe the full 63 * PDMSCATTERGATHER::cbAvailable length. 64 * 56 65 * @todo Promote this to VBox/types.h, VBox/vmm/pdmcommon.h or some such place. 57 66 */ … … 73 82 * This is set on alloc and not changed by the user. */ 74 83 size_t cSegs; 75 /** Variable sized array of segments. */ 76 PDMDATASEG aSegs[1]; 84 /** Variable sized array of segments. 85 * This describes the max allocated buffer length, consumers must limit 86 * operations to PDMSCATTERGATHER::cbUser. */ 87 RTSGSEG aSegs[1]; 77 88 } PDMSCATTERGATHER; 78 89 /** Pointer to a PDM scatter/gather buffer. */
Note:
See TracChangeset
for help on using the changeset viewer.