Home | History | Annotate | Download | only in qemu

Lines Matching refs:HANDLE

91     HANDLE handle;
92 HANDLE read_event;
93 HANDLE write_event;
94 HANDLE output_queue_semaphore;
95 HANDLE free_list_semaphore;
96 HANDLE tap_semaphore;
388 static int tap_win32_set_status(HANDLE handle, int status)
392 return DeviceIoControl(handle, TAP_IOCTL_SET_MEDIA_STATUS,
397 static void tap_win32_overlapped_init(tap_win32_overlapped_t* const overlapped, const HANDLE handle)
399 overlapped->handle = handle;
458 result = GetOverlappedResult( overlapped->handle, &overlapped->write_overlapped,
464 result = WriteFile(overlapped->handle, buffer, size,
493 result = ReadFile(overlapped->handle,
502 result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped,
569 HANDLE handle;
579 HANDLE hThread;
593 handle = CreateFile (
602 if (handle == INVALID_HANDLE_VALUE) {
606 bret = DeviceIoControl(handle, TAP_IOCTL_GET_VERSION,
611 CloseHandle(handle);
615 if (!tap_win32_set_status(handle, TRUE)) {
619 tap_win32_overlapped_init(&tap_overlapped, handle);
632 tap_win32_overlapped_t *handle;
639 qemu_del_wait_object(s->handle->tap_semaphore, NULL, NULL);
641 /* FIXME: need to kill thread and close file handle:
651 return tap_win32_write(s->handle, buf, size);
661 size = tap_win32_read(s->handle, &buf, max_size);
664 tap_win32_free_buffer(s->handle, buf);
676 if (tap_win32_open(&s->handle, ifname) < 0) {
687 qemu_add_wait_object(s->handle->tap_semaphore, tap_win32_send, s);