Searched refs:bytes_available_fd (Results 1 – 1 of 1) sorted by relevance
/system/bt/osi/src/ |
D | eager_reader.c | 45 int bytes_available_fd; // semaphore mode eventfd which counts the number of available bytes member 83 ret->bytes_available_fd = eventfd(0, 0); in eager_reader_new() 84 if (ret->bytes_available_fd == INVALID_FD) { in eager_reader_new() 128 if (reader->bytes_available_fd != INVALID_FD) in eager_reader_free() 129 close(reader->bytes_available_fd); in eager_reader_free() 151 …reader->outbound_registration = reactor_register(reactor, reader->bytes_available_fd, reader, inte… in eager_reader_register() 174 if (eventfd_read(reader->bytes_available_fd, &bytes_available) == -1) { in eager_reader_read() 202 if (eventfd_write(reader->bytes_available_fd, bytes_available) == -1) { in eager_reader_read() 221 FD_SET(reader->bytes_available_fd, &read_fds); in has_byte() 228 int ret = select(reader->bytes_available_fd + 1, &read_fds, NULL, NULL, in has_byte() [all …]
|