Lines Matching defs:pSession

98 static int              VbgdDarwinIOCtlSlow(PVBOXGUESTSESSION pSession, u_long iCmd, caddr_t pData, struct proc *pProcess);
377 PVBOXGUESTSESSION pSession = NULL;
385 pSession = g_apSessionHashTab[iHash];
386 while (pSession && pSession->Process != Process)
387 pSession = pSession->pNextHash;
388 if (pSession)
390 if (!pSession->fOpened)
392 pSession->fOpened = true;
393 /*pSession->fUnrestricted = fUnrestricted; - later */
413 Log(("VbgdDarwinOpen: g_DevExt=%p pSession=%p rc=%d pid=%d\n", &g_DevExt, pSession, rc, proc_pid(pProcess)));
449 PVBOXGUESTSESSION pSession;
455 pSession = g_apSessionHashTab[iHash];
456 while (pSession && pSession->Process != Process && (/*later: pSession->fUnrestricted != fUnrestricted ||*/ !pSession->fOpened))
457 pSession = pSession->pNextHash;
459 if (!pSession)
461 Log(("VBoxDrvDarwinIOCtl: WHAT?!? pSession == NULL! This must be a mistake... pid=%d iCmd=%#lx\n",
470 return VbgdDarwinIOCtlSlow(pSession, iCmd, pData, pProcess);
479 * @param pSession The session.
484 static int VbgdDarwinIOCtlSlow(PVBOXGUESTSESSION pSession, u_long iCmd, caddr_t pData, struct proc *pProcess)
486 LogFlow(("VbgdDarwinIOCtlSlow: pSession=%p iCmd=%p pData=%p pProcess=%p\n", pSession, iCmd, pData, pProcess));
562 int rc = VbgdCommonIoCtl(iCmd, &g_DevExt, pSession, pvReqData, cbReq, &cbReqRet);
1086 PVBOXGUESTSESSION pSession = g_apSessionHashTab[iHash];
1087 if (pSession)
1089 if (pSession->Process == Process)
1091 g_apSessionHashTab[iHash] = pSession->pNextHash;
1092 pSession->pNextHash = NULL;
1097 PVBOXGUESTSESSION pPrev = pSession;
1098 pSession = pSession->pNextHash;
1099 while (pSession)
1101 if (pSession->Process == Process)
1103 pPrev->pNextHash = pSession->pNextHash;
1104 pSession->pNextHash = NULL;
1110 pPrev = pSession;
1111 pSession = pSession->pNextHash;
1116 if (!pSession)
1118 Log(("VBoxGuestClient::sessionClose: pSession == NULL, pid=%d; freed already?\n", (int)Process));
1125 org_virtualbox_VBoxGuestClient *pThis = (org_virtualbox_VBoxGuestClient *)pSession->pvVBoxGuestClient;
1126 pSession->pvVBoxGuestClient = NULL;
1129 Assert(pThis->m_pSession == pSession);
1136 VbgdCommonCloseSession(&g_DevExt, pSession);