Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vmware/vmci/vmci_queue_pair.c
Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | |||||
*------------------------------------------------------------------------------ | *------------------------------------------------------------------------------ | ||||
*/ | */ | ||||
void | void | ||||
vmci_qp_guest_endpoints_exit(void) | vmci_qp_guest_endpoints_exit(void) | ||||
{ | { | ||||
struct qp_guest_endpoint *entry; | struct qp_guest_endpoint *entry; | ||||
if (!vmci_mutex_initialized(&qp_guest_endpoints.mutex)) | |||||
return; | |||||
vmci_mutex_acquire(&qp_guest_endpoints.mutex); | vmci_mutex_acquire(&qp_guest_endpoints.mutex); | ||||
while ((entry = | while ((entry = | ||||
(struct qp_guest_endpoint *)queue_pair_list_get_head( | (struct qp_guest_endpoint *)queue_pair_list_get_head( | ||||
&qp_guest_endpoints)) != NULL) { | &qp_guest_endpoints)) != NULL) { | ||||
/* | /* | ||||
* Don't make a hypercall for local QueuePairs. | * Don't make a hypercall for local QueuePairs. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 588 Lines • Show Last 20 Lines |