Searched refs:signal_fds (Results 1 – 2 of 2) sorted by relevance
/system/bt/udrv/ulinux/ |
D | uipc.c | 101 int signal_fds[2]; member 223 if (socketpair(AF_UNIX, SOCK_STREAM, 0, uipc_main.signal_fds) < 0) in uipc_main_init() 228 FD_SET(uipc_main.signal_fds[0], &uipc_main.active_set); in uipc_main_init() 229 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.signal_fds[0]); in uipc_main_init() 251 close(uipc_main.signal_fds[0]); in uipc_main_cleanup() 252 close(uipc_main.signal_fds[1]); in uipc_main_cleanup() 329 if (SAFE_FD_ISSET(uipc_main.signal_fds[0], &uipc_main.read_set)) in uipc_check_interrupt_locked() 333 TEMP_FAILURE_RETRY(recv(uipc_main.signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL)); in uipc_check_interrupt_locked() 341 TEMP_FAILURE_RETRY(send(uipc_main.signal_fds[1], &sig_on, sizeof(sig_on), 0)); in uipc_wakeup_locked()
|
/system/bt/btif/src/ |
D | btif_hl.c | 106 static int signal_fds[2] = { -1, -1 }; variable 4831 if (signal_fds[0] == -1 && socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds) < 0) in btif_hl_select_wakeup_init() 4837 …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() 4838 FD_SET(signal_fds[0], set); in btif_hl_select_wakeup_init() 4840 return signal_fds[0]; in btif_hl_select_wakeup_init() 4855 return TEMP_FAILURE_RETRY(send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_wakeup() 4870 return TEMP_FAILURE_RETRY(send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_select_close_connected() 4887 result = TEMP_FAILURE_RETRY(send(signal_fds[1], &sig_on, sizeof(sig_on), 0)); in btif_hl_close_select_thread() 4914 TEMP_FAILURE_RETRY(recv(signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL)); in btif_hl_select_wake_reset() 4928 return FD_ISSET(signal_fds[0], set); in btif_hl_select_wake_signaled()
|