Searched refs:signal_fds (Results 1 – 2 of 2) sorted by relevance
/system/bt/udrv/ulinux/ |
D | uipc.c | 97 int signal_fds[2]; member 228 if (socketpair(AF_UNIX, SOCK_STREAM, 0, uipc_main.signal_fds) < 0) in uipc_main_init() 233 FD_SET(uipc_main.signal_fds[0], &uipc_main.active_set); in uipc_main_init() 234 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.signal_fds[0]); in uipc_main_init() 256 close(uipc_main.signal_fds[0]); in uipc_main_cleanup() 257 close(uipc_main.signal_fds[1]); in uipc_main_cleanup() 334 if (SAFE_FD_ISSET(uipc_main.signal_fds[0], &uipc_main.read_set)) in uipc_check_interrupt_locked() 337 OSI_NO_INTR(recv(uipc_main.signal_fds[0], &sig_recv, sizeof(sig_recv), in uipc_check_interrupt_locked() 347 OSI_NO_INTR(send(uipc_main.signal_fds[1], &sig_on, sizeof(sig_on), 0)); in uipc_wakeup_locked()
|
/system/bt/btif/src/ |
D | btif_hl.c | 93 static int signal_fds[2] = { -1, -1 }; variable 4691 if (signal_fds[0] == -1 && socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds) < 0) in btif_hl_select_wakeup_init() 4697 …EBUG("btif_hl_select_wakeup_init signal_fds[0]=%d signal_fds[1]=%d",signal_fds[0], signal_fds[1] ); in btif_hl_select_wakeup_init() 4698 FD_SET(signal_fds[0], set); in btif_hl_select_wakeup_init() 4700 return signal_fds[0]; in btif_hl_select_wakeup_init() 4718 OSI_NO_INTR(ret = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_wakeup() 4738 OSI_NO_INTR(ret = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_close_connected() 4759 OSI_NO_INTR(result = send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_close_select_thread() 4791 OSI_NO_INTR(r = recv(signal_fds[0], &sig_recv, sizeof(sig_recv), in btif_hl_select_wake_reset() 4807 return FD_ISSET(signal_fds[0], set); in btif_hl_select_wake_signaled()
|