/external/bluetooth/bluedroid/hci/src/ |
userial_mct.c | 102 ** - signal_fds[0]: join fd_set in select call of userial_read_thread 103 ** - signal_fds[1]: trigger from userial_close 105 static int signal_fds[2]={0,1}; variable 109 if(signal_fds[0]==0 && socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds)<0) 114 FD_SET(signal_fds[0], set); 115 return signal_fds[0]; 119 return send(signal_fds[1], &sig_cmd, sizeof(sig_cmd), 0); 124 recv(signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL); 129 return FD_ISSET(signal_fds[0], set) [all...] |
userial.c | 126 ** - signal_fds[0]: join fd_set in select call of userial_read_thread 127 ** - signal_fds[1]: trigger from userial_close 129 static int signal_fds[2]={0,1}; variable 133 if(signal_fds[0]==0 && socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds)<0) 138 FD_SET(signal_fds[0], set); 139 return signal_fds[0]; 143 return send(signal_fds[1], &sig_cmd, sizeof(sig_cmd), 0); 148 recv(signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL); 153 return FD_ISSET(signal_fds[0], set) [all...] |
/external/bluetooth/bluedroid/udrv/ulinux/ |
uipc.c | 96 int signal_fds[2]; member in struct:__anon1282 256 if (socketpair(AF_UNIX, SOCK_STREAM, 0, uipc_main.signal_fds) < 0) 261 FD_SET(uipc_main.signal_fds[0], &uipc_main.active_set); 262 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.signal_fds[0]); 284 close(uipc_main.signal_fds[0]); 285 close(uipc_main.signal_fds[1]); 362 if (FD_ISSET(uipc_main.signal_fds[0], &uipc_main.read_set)) 366 recv(uipc_main.signal_fds[0], &sig_recv, sizeof(sig_recv), MSG_WAITALL); 374 send(uipc_main.signal_fds[1], &sig_on, sizeof(sig_on), 0);
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
userial_linux.c | 403 static int signal_fds[2]; variable 406 if (signal_fds[0] == 0 && socketpair(AF_UNIX, SOCK_STREAM, 0, signal_fds) < 0) 411 set->fd = signal_fds[0]; 412 return signal_fds[0]; 426 close(signal_fds[0]); 427 signal_fds[0] = 0; 429 close(signal_fds[1]); 430 signal_fds[1] = 0; 446 ALOGD("%s: Sending signal to %d", __func__, signal_fds[1]) [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_hl.c | 92 static int signal_fds[2]; variable [all...] |