Changeset 99962 in vbox for trunk/include/VBox/vmm
- Timestamp:
- May 24, 2023 11:27:39 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.