Home
last modified time | relevance | path

Searched refs:signal_fds (Results 1 – 3 of 3) sorted by relevance

/system/bt/udrv/ulinux/
Duipc.cc191 memset(&uipc.signal_fds, 0, sizeof(uipc.signal_fds)); in uipc_main_init()
195 if (socketpair(AF_UNIX, SOCK_STREAM, 0, uipc.signal_fds) < 0) { in uipc_main_init()
199 FD_SET(uipc.signal_fds[0], &uipc.active_set); in uipc_main_init()
200 uipc.max_fd = MAX(uipc.max_fd, uipc.signal_fds[0]); in uipc_main_init()
218 close(uipc.signal_fds[0]); in uipc_main_cleanup()
219 close(uipc.signal_fds[1]); in uipc_main_cleanup()
288 if (SAFE_FD_ISSET(uipc.signal_fds[0], &uipc.read_set)) { in uipc_check_interrupt_locked()
291 recv(uipc.signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL)); in uipc_check_interrupt_locked()
299 OSI_NO_INTR(send(uipc.signal_fds[1], &sig_on, sizeof(sig_on), 0)); in uipc_wakeup_locked()
/system/bt/udrv/include/
Duipc.h76 int signal_fds[2]; member
/system/bt/btif/src/
Dbtif_hl.cc98 static int signal_fds[2] = {-1, -1}; variable
4394 if (signal_fds[0] == -1 && in btif_hl_select_wakeup_init()
4395 socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds) < 0) { in btif_hl_select_wakeup_init()
4402 signal_fds[0], signal_fds[1]); in btif_hl_select_wakeup_init()
4403 FD_SET(signal_fds[0], set); in btif_hl_select_wakeup_init()
4405 return signal_fds[0]; in btif_hl_select_wakeup_init()
4423 OSI_NO_INTR(ret = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_wakeup()
4443 OSI_NO_INTR(ret = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_close_connected()
4463 OSI_NO_INTR(result = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_close_select_thread()
4495 r = recv(signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL)); in btif_hl_select_wake_reset()
[all …]