Changeset 105353 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 16, 2024 11:47:19 AM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 164006
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 5 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
Note:
See TracChangeset
for help on using the changeset viewer.