Changeset 105353 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 16, 2024 11:47:19 AM (5 months ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvCloudTunnel.cpp
r104584 r105353 419 419 Log2(("%s: submitting TX request (pvSeg=%p, %u bytes) to I/O queue...\n", 420 420 pThis->pszInstance, pSgBuf->aSegs[0].pvSeg, pSgBuf->cbUsed)); 421 rc = RTReqQueueCallEx(pThis->hIoReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, 422 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 421 rc = RTReqQueueCallEx(pThis->hIoReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 423 422 (PFNRT)drvCloudTunnelSendWorker, 2, pThis, pSgBuf); 424 423 … … 743 742 return len; 744 743 } 745 int rc = RTReqQueueCallEx(pThis->hDevReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, 746 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 744 int rc = RTReqQueueCallEx(pThis->hDevReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 747 745 (PFNRT)drvCloudTunnelReceiveWorker, 3, pThis, pvPacket, len); 748 746 if (RT_FAILURE(rc)) … … 821 819 /* Wake up device thread. */ 822 820 PRTREQ pReq; 823 int rc = RTReqQueueCall(pThis->hDevReqQueue, &pReq, 10000 /*cMillies*/, 824 (PFNRT)drvCloudTunnelReceiveWakeup, 1, pThis); 821 int rc = RTReqQueueCall(pThis->hDevReqQueue, &pReq, 10000 /*cMillies*/, (PFNRT)drvCloudTunnelReceiveWakeup, 1, pThis); 825 822 if (RT_FAILURE(rc)) 826 823 LogRel(("%s: failed to wake up device thread - %Rrc\n", pThis->pszInstance, rc)); -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r104583 r105353 610 610 if (pThis->pSlirpThread->enmState == PDMTHREADSTATE_RUNNING) 611 611 { 612 rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, 613 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 612 rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 614 613 (PFNRT)drvNATSendWorker, 2, pThis, pSgBuf); 615 614 if (RT_SUCCESS(rc)) … … 963 962 964 963 int rc; 965 rc = RTReqQueueCallEx(pThis->hHostResQueue, NULL /*ppReq*/, 0 /*cMillies*/, 966 RTREQFLAGS_IPRT_STATUS | RTREQFLAGS_NO_WAIT, 964 rc = RTReqQueueCallEx(pThis->hHostResQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_IPRT_STATUS | RTREQFLAGS_NO_WAIT, 967 965 (PFNRT)drvNATReqQueueInterrupt, 0); 968 966 return rc; … … 1046 1044 * Call a function on the slirp thread. 1047 1045 */ 1048 int slirp_call(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies, 1049 unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) 1046 int slirp_call(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) 1050 1047 { 1051 1048 PDRVNAT pThis = (PDRVNAT)pvUser; … … 1085 1082 va_start(va, cArgs); 1086 1083 1087 rc = RTReqQueueCallV(pThis->hHostResQueue, ppReq, cMillies, fFlags, 1088 pfnFunction, cArgs, va); 1084 rc = RTReqQueueCallV(pThis->hHostResQueue, ppReq, cMillies, fFlags, pfnFunction, cArgs, va); 1089 1085 1090 1086 va_end(va); … … 1291 1287 * so we schedule the worker and kick the NAT thread. 1292 1288 */ 1293 int rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, 1294 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 1289 int rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 1295 1290 (PFNRT)drvNATReinitializeHostNameResolving, 1, pThis); 1296 1291 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Devices/Network/DrvNATlibslirp.cpp
r105202 r105353 334 334 if (pThis->pSlirpThread->enmState == PDMTHREADSTATE_RUNNING) 335 335 { 336 rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, 337 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 336 rc = RTReqQueueCallEx(pThis->hSlirpReqQueue, NULL /*ppReq*/, 0 /*cMillies*/, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 338 337 (PFNRT)drvNATSendWorker, 2, pThis, pSgBuf); 339 338 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Devices/Network/slirp/hostres.c
r98103 r105353 175 175 176 176 177 static voidhostres_async(struct response *res);178 static voidhostres_slirp_reply(struct response *res);177 static DECLCALLBACK(void) hostres_async(struct response *res); 178 static DECLCALLBACK(void) hostres_slirp_reply(struct response *res); 179 179 180 180 … … 205 205 res->end = res->qlen = mlen; 206 206 207 rc = slirp_call_hostres(pData->pvUser, NULL, 0, 208 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 209 (PFNRT)hostres_async, 1, res); 210 207 rc = slirp_call_hostres(pData->pvUser, NULL, 0, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, (PFNRT)hostres_async, 1, res); 211 208 if (RT_FAILURE(rc)) 212 209 { … … 341 338 free_labels(res->labels); 342 339 343 rc = slirp_call(res->pData->pvUser, NULL, 0, 344 RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, 345 (PFNRT)hostres_slirp_reply, 1, res); 346 340 rc = slirp_call(res->pData->pvUser, NULL, 0, RTREQFLAGS_VOID | RTREQFLAGS_NO_WAIT, (PFNRT)hostres_slirp_reply, 1, res); 347 341 if (RT_FAILURE(rc)) 348 342 { -
trunk/src/VBox/Devices/Network/slirp/libslirp.h
r98103 r105353 84 84 85 85 int slirp_call(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies, 86 unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) ;86 unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) RT_IPRT_CALL_ATTR(5, 6, 7); 87 87 88 88 int slirp_call_hostres(void *pvUser, PRTREQ *ppReq, RTMSINTERVAL cMillies, 89 unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) ;89 unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) RT_IPRT_CALL_ATTR(5, 6, 7); 90 90 91 91 -
trunk/src/VBox/Devices/Storage/DrvRamDisk.cpp
r99887 r105353 1018 1018 { 1019 1019 if (pIoReq->enmType == PDMMEDIAEXIOREQTYPE_READ) 1020 rc = RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, 1021 (PFNRT)drvramdiskIoReqReadWorker, 2, pThis, pIoReq); 1020 rc = RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, (PFNRT)drvramdiskIoReqReadWorker, 2, pThis, pIoReq); 1022 1021 else 1023 1022 { … … 1495 1494 1496 1495 ASMAtomicIncU32(&pThis->cIoReqsActive); 1497 return RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, 1498 (PFNRT)drvramdiskIoReqFlushWorker, 2, pThis, pIoReq); 1496 return RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, (PFNRT)drvramdiskIoReqFlushWorker, 2, pThis, pIoReq); 1499 1497 } 1500 1498 … … 1537 1535 ASMAtomicIncU32(&pThis->cIoReqsActive); 1538 1536 1539 rc = RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, 1540 (PFNRT)drvramdiskIoReqDiscardWorker, 2, pThis, pIoReq); 1537 rc = RTReqQueueCallEx(pThis->hReqQ, NULL, 0, RTREQFLAGS_NO_WAIT, (PFNRT)drvramdiskIoReqDiscardWorker, 2, pThis, pIoReq); 1541 1538 if (rc == VINF_SUCCESS) 1542 1539 rc = VINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS; … … 1706 1703 1707 1704 PRTREQ pReq = NULL; 1708 int rc = RTReqQueueCallEx(pThis->hReqQ, &pReq, RT_INDEFINITE_WAIT, RTREQFLAGS_IPRT_STATUS, 1709 (PFNRT)drvramdiskDestructQueue, 0); 1705 int rc = RTReqQueueCallEx(pThis->hReqQ, &pReq, RT_INDEFINITE_WAIT, RTREQFLAGS_IPRT_STATUS, (PFNRT)drvramdiskDestructQueue, 0); 1710 1706 AssertRC(rc); 1711 1707 RTReqRelease(pReq); -
trunk/src/VBox/Devices/USB/VUSBDevice.cpp
r100517 r105353 554 554 { 555 555 RTCritSectEnter(&pDev->pHub->CritSectDevices); 556 int rc = vusbDevIoThreadExecSync(pDev, (PFNRT)pDev->pUsbIns->pReg->pfnUsbClearHaltedEndpoint, 557 2,pDev->pUsbIns, pSetup->wIndex);556 int rc = vusbDevIoThreadExecSync(pDev, (PFNRT)pDev->pUsbIns->pReg->pfnUsbClearHaltedEndpoint, 2, 557 pDev->pUsbIns, pSetup->wIndex); 558 558 RTCritSectLeave(&pDev->pHub->CritSectDevices); 559 559 return RT_SUCCESS(rc); -
trunk/src/VBox/Devices/USB/VUSBInternal.h
r104804 r105353 504 504 int vusbDevUrbIoThreadDestroy(PVUSBDEV pDev); 505 505 DECLHIDDEN(void) vusbDevCancelAllUrbs(PVUSBDEV pDev, bool fDetaching); 506 DECLHIDDEN(int) vusbDevIoThreadExecV(PVUSBDEV pDev, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args); 507 DECLHIDDEN(int) vusbDevIoThreadExec(PVUSBDEV pDev, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...); 508 DECLHIDDEN(int) vusbDevIoThreadExecSync(PVUSBDEV pDev, PFNRT pfnFunction, unsigned cArgs, ...); 506 DECLHIDDEN(int) vusbDevIoThreadExecV(PVUSBDEV pDev, uint32_t fFlags, PFNRT pfnFunction, 507 unsigned cArgs, va_list Args) RT_IPRT_CALL_ATTR(3, 4, 0); 508 DECLHIDDEN(int) vusbDevIoThreadExec(PVUSBDEV pDev, uint32_t fFlags, PFNRT pfnFunction, 509 unsigned cArgs, ...) RT_IPRT_CALL_ATTR(3, 4, 5); 510 DECLHIDDEN(int) vusbDevIoThreadExecSync(PVUSBDEV pDev, PFNRT pfnFunction, unsigned cArgs, ...) RT_IPRT_CALL_ATTR(2, 3, 4); 509 511 DECLHIDDEN(int) vusbUrbCancelWorker(PVUSBURB pUrb, CANCELMODE enmMode); 510 512
Note:
See TracChangeset
for help on using the changeset viewer.