}
-/*
- *-----------------------------------------------------------------------------
- *
- * VMCIQPair_Init --
- *
- * This is the client interface for initializing the producer's
- * pointers.
- *
- * Results:
- * err, if < 0
- *
- * Side effects:
- * Windows blocking call.
- *
- *-----------------------------------------------------------------------------
- */
-
-VMCI_EXPORT_SYMBOL(VMCIQPair_Init)
-void
-VMCIQPair_Init(VMCIQPair *qpair)
-{
- VMCIQPairLock(qpair);
-
- if (NULL != qpair &&
- NULL != qpair->produceQ &&
- NULL != qpair->produceQ->qHeader) {
- VMCIQueueHeader_Init(qpair->produceQ->qHeader, qpair->handle);
- }
-
- VMCIQPairUnlock(qpair);
-}
-
-
/*
*-----------------------------------------------------------------------------
*
goto destroy;
}
- VMCIQPair_Init(qpair);
-
ASSERT(VMCI_HANDLE_EQUAL(handle, pkt->u.handle));
vpending->qpHandle = handle;
vpending->qpair = qpair;
goto destroy;
}
- VMCIQPair_Init(qpair);
-
err = VSOCK_SEND_QP_OFFER(sk, handle);
if (err < 0) {
err = VSockVmci_ErrorToVSockError(err);