Changeset 107091 in vbox for trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
- Timestamp:
- Nov 21, 2024 4:12:02 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r107085 r107091 278 278 */ 279 279 #define SUP_IOCTL_QUERY_FUNCS(cFuncs) SUP_CTL_CODE_BIG(2) 280 #define SUP_IOCTL_QUERY_FUNCS_SIZE(cFuncs) ((uint32_t)(RT_UOFFSETOF_DYN(SUPQUERYFUNCS, u.Out.aFunctions) \ 281 + RT_SIZEOFMEMB(SUPQUERYFUNCS, u.Out.aFunctions) * (cFuncs))) 280 #define SUP_IOCTL_QUERY_FUNCS_SIZE(cFuncs) ((uint32_t)RT_UOFFSETOF_FLEX_ARRAY(SUPQUERYFUNCS, u.Out.aFunctions, (cFuncs))) 282 281 #define SUP_IOCTL_QUERY_FUNCS_SIZE_IN sizeof(SUPREQHDR) 283 282 #define SUP_IOCTL_QUERY_FUNCS_SIZE_OUT(cFuncs) SUP_IOCTL_QUERY_FUNCS_SIZE(cFuncs) … … 362 361 */ 363 362 #define SUP_IOCTL_LDR_LOAD SUP_CTL_CODE_BIG(4) 364 #define SUP_IOCTL_LDR_LOAD_SIZE_IN(cbImage) ((uint32_t)(RT_UOFFSETOF_DYN(SUPLDRLOAD, u.In.abImage) \ 365 + RT_SIZEOFMEMB(SUPLDRLOAD, u.In.abImage) * (cbImage))) 363 #define SUP_IOCTL_LDR_LOAD_SIZE_IN(cbImage) ((uint32_t)RT_UOFFSETOF_FLEX_ARRAY(SUPLDRLOAD, u.In.abImage, (cbImage))) 366 364 #define SUP_IOCTL_LDR_LOAD_SIZE_OUT (RT_UOFFSETOF(SUPLDRLOAD, u.Out.szError) + RT_SIZEOFMEMB(SUPLDRLOAD, u.Out.szError)) 367 365 #define SUP_IOCTL_LDR_LOAD_SIZE(cbImage) RT_MAX(SUP_IOCTL_LDR_LOAD_SIZE_IN(cbImage), SUP_IOCTL_LDR_LOAD_SIZE_OUT) … … 638 636 */ 639 637 #define SUP_IOCTL_LOW_ALLOC SUP_CTL_CODE_BIG(8) 640 #define SUP_IOCTL_LOW_ALLOC_SIZE(cPages) ((uint32_t)(RT_UOFFSETOF_DYN(SUPLOWALLOC, u.Out.aPages) \ 641 + RT_SIZEOFMEMB(SUPLOWALLOC, u.Out.aPages) * (cPages))) 638 #define SUP_IOCTL_LOW_ALLOC_SIZE(cPages) ((uint32_t)RT_UOFFSETOF_FLEX_ARRAY(SUPLOWALLOC, u.Out.aPages, (cPages))) 642 639 #define SUP_IOCTL_LOW_ALLOC_SIZE_IN (sizeof(SUPREQHDR) + RT_SIZEOFMEMB(SUPLOWALLOC, u.In)) 643 640 #define SUP_IOCTL_LOW_ALLOC_SIZE_OUT(cPages) SUP_IOCTL_LOW_ALLOC_SIZE(cPages) … … 701 698 */ 702 699 #define SUP_IOCTL_PAGE_ALLOC_EX SUP_CTL_CODE_BIG(10) 703 #define SUP_IOCTL_PAGE_ALLOC_EX_SIZE(cPages) ((uint32_t)(RT_UOFFSETOF_DYN(SUPPAGEALLOCEX, u.Out.aPages) \ 704 + RT_SIZEOFMEMB(SUPPAGEALLOCEX, u.Out.aPages) * (cPages))) 700 #define SUP_IOCTL_PAGE_ALLOC_EX_SIZE(cPages) ((uint32_t)RT_UOFFSETOF_FLEX_ARRAY(SUPPAGEALLOCEX, u.Out.aPages, (cPages))) 705 701 #define SUP_IOCTL_PAGE_ALLOC_EX_SIZE_IN (sizeof(SUPREQHDR) + RT_SIZEOFMEMB(SUPPAGEALLOCEX, u.In)) 706 702 #define SUP_IOCTL_PAGE_ALLOC_EX_SIZE_OUT(cPages) SUP_IOCTL_PAGE_ALLOC_EX_SIZE(cPages)
Note:
See TracChangeset
for help on using the changeset viewer.