Home
last modified time | relevance | path

Searched refs:send_fd (Results 1 – 4 of 4) sorted by relevance

/system/bt/btif/src/
Dbtif_sock_util.c95 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) in sock_send_fd() argument
103 asrt(send_fd != -1); in sock_send_fd()
104 if(sock_fd == -1 || send_fd == -1) in sock_send_fd()
113 cmsg->cmsg_len = CMSG_LEN(sizeof send_fd); in sock_send_fd()
114 memcpy(CMSG_DATA(cmsg), &send_fd, sizeof send_fd); in sock_send_fd()
132 sock_fd, send_fd, (int)ret, errno, strerror(errno)); in sock_send_fd()
143 BTIF_TRACE_DEBUG("close fd:%d after sent", send_fd); in sock_send_fd()
146 close(send_fd); in sock_send_fd()
Dbtif_sock_l2cap.c394 int channel, int status, int send_fd, int tx_mtu) in send_app_connect_signal() argument
403 if (send_fd != -1) { in send_app_connect_signal()
404 if (sock_send_fd(fd, (const uint8_t*)&cs, sizeof(cs), send_fd) == sizeof(cs)) in send_app_connect_signal()
406 else APPL_TRACE_ERROR("sock_send_fd failed, fd:%d, send_fd:%d", fd, send_fd); in send_app_connect_signal()
Dbtif_sock_rfc.c440 …ol send_app_connect_signal(int fd, const bt_bdaddr_t* addr, int channel, int status, int send_fd) { in send_app_connect_signal() argument
448 if (send_fd == INVALID_FD) in send_app_connect_signal()
451 return sock_send_fd(fd, (const uint8_t *)&cs, sizeof(cs), send_fd) == sizeof(cs); in send_app_connect_signal()
/system/bt/btif/include/
Dbtif_sock_util.h34 int sock_send_fd(int sock_fd, const uint8_t* buffer, int len, int send_fd);