HomeSort by relevance Sort by last modified time
    Searched refs:num_fds (Results 1 - 25 of 37) sorted by null

1 2

  /external/ltp/testcases/kernel/sched/cfs-scheduler/
hackbench.c 76 unsigned int num_fds; member in struct:sender_context
139 for (j = 0; j < ctx->num_fds; j++) {
239 unsigned int num_fds, int ready_out, int wakefd)
242 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) + num_fds * sizeof(int));
248 for (i = 0; i < num_fds; i++) {
255 rev_ctx_tab[gr_num * num_fds + i] = ctx;
260 ctx->num_packets = num_fds * loops;
274 for (i = 0; i < num_fds; i++) {
277 snd_ctx->num_fds = num_fds;
297 unsigned int num_fds = 20; local
    [all...]
  /external/libvncserver/examples/
1instance.c 52 int num_fds; local
59 num_fds=select(str->fd+1,&fdset,NULL,NULL,&tv);
60 if(num_fds) {
67 num_fds--;
75 return(num_fds);
81 int num_fds; local
83 if((num_fds=get_next_message(buffer,1024,str,usecs)) && buffer[0])
86 return(num_fds);
  /external/adhd/cras/src/server/
cras_rclient.h 48 * num_fds - Number of entries in the fds array.
55 unsigned int num_fds);
cras_rclient.c 524 unsigned int num_fds)
527 fds, num_fds);
cras_server.c 120 unsigned int num_fds = 1; local
123 nread = cras_recv_with_fds(client->fd, buf, sizeof(buf), &fd, &num_fds);
  /external/adhd/cras/src/tests/
util_unittest.cc 26 unsigned int num_fds = 2; local
37 ASSERT_GE(cras_send_with_fds(sock[0], msg, strlen(msg), send_fds, num_fds),
39 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds),
42 ASSERT_EQ(2, num_fds);
72 unsigned int num_fds = 2; local
81 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds),
84 ASSERT_EQ(1, num_fds);
109 unsigned int num_fds = 1; local
117 ASSERT_EQ(5, cras_send_with_fds(sock[0], msg, strlen(msg), &fd[1], num_fds));
119 cras_recv_with_fds(sock[1], buf, strlen(msg), &new_fd, &num_fds));
140 unsigned int num_fds = 0; local
    [all...]
  /external/autotest/client/tests/hackbench/src/
hackbench.c 104 unsigned int num_fds; member in struct:sender_context
167 for (j = 0; j < ctx->num_fds; j++) {
264 unsigned int num_fds,
270 +num_fds*sizeof(int));
272 for (i = 0; i < num_fds; i++) {
283 ctx->num_packets = num_fds*loops;
297 for (i = 0; i < num_fds; i++) {
300 snd_ctx->num_fds = num_fds;
302 pth[num_fds+i] = create_worker(snd_ctx, (void *)(void *)sender)
318 unsigned int num_fds = 20; local
    [all...]
  /device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
mm_camera_thread.c 224 poll_cb->num_fds = 0;
225 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0];
226 poll_cb->poll_fds[poll_cb->num_fds].events = POLLIN|POLLRDNORM|POLLPRI;
227 poll_cb->num_fds++;
230 poll_cb->num_fds < MAX_STREAM_NUM_IN_BUNDLE) {
233 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[0].fd;
234 poll_cb->poll_fds[poll_cb->num_fds].events = POLLIN|POLLRDNORM|POLLPRI;
235 poll_cb->num_fds++;
238 poll_cb->num_fds <= MAX_STREAM_NUM_IN_BUNDLE) {
242 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[i].fd
    [all...]
  /hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
mm_camera_thread.c 224 poll_cb->num_fds = 0;
225 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0];
226 poll_cb->poll_fds[poll_cb->num_fds].events = POLLIN|POLLRDNORM|POLLPRI;
227 poll_cb->num_fds++;
230 poll_cb->num_fds < MAX_STREAM_NUM_IN_BUNDLE) {
233 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[0].fd;
234 poll_cb->poll_fds[poll_cb->num_fds].events = POLLIN|POLLRDNORM|POLLPRI;
235 poll_cb->num_fds++;
238 poll_cb->num_fds <= MAX_STREAM_NUM_IN_BUNDLE) {
242 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->poll_entries[i].fd
    [all...]
  /bionic/tests/
sys_select_test.cpp 95 int num_fds = select(max, &r, &w, &e, NULL); local
99 ASSERT_TRUE(num_fds == 2 || num_fds == 3) << "Num fds returned " << num_fds;
102 if (num_fds == 3) {
153 int num_fds = pselect(max, &r, &w, &e, NULL, &ss); local
154 ASSERT_TRUE(num_fds == 2 || num_fds == 3) << "Num fds returned " << num_fds;
157 if (num_fds == 3)
    [all...]
  /external/adhd/cras/src/common/
cras_util.c 98 unsigned int num_fds)
104 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * num_fds);
120 cmsg->cmsg_len = CMSG_LEN(sizeof(*fd) * num_fds);
121 memcpy(CMSG_DATA(cmsg), fd, sizeof(*fd) * num_fds);
129 unsigned int *num_fds)
135 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * *num_fds);
141 for (i = 0; i < *num_fds; i++)
162 *num_fds = MIN(*num_fds, fd_size / sizeof(*fd));
163 memcpy(fd, CMSG_DATA(cmsg), *num_fds * sizeof(*fd))
    [all...]
cras_util.h 81 unsigned int num_fds);
86 unsigned int *num_fds);
  /device/google/marlin/camera/QCamera2/stack/mm-camera-interface/inc/
mm_camera_sock.h 65 int num_fds);
  /hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/inc/
mm_camera_sock.h 65 int num_fds);
  /external/wayland/tests/
test-runner.c 168 int num_fds; local
178 num_fds = count_open_fds();
179 if (supposed_fds != num_fds) {
181 "Opened %d files, unclosed %d\n", num_fds,
182 num_fds - supposed_fds);
  /external/google-breakpad/src/client/linux/crash_generation/
crash_generation_server.cc 237 const unsigned num_fds = len / sizeof(int); local
238 if (num_fds > 1 || num_fds == 0) {
241 for (unsigned i = 0; i < num_fds; ++i)
  /external/libmojo/mojo/edk/system/
channel_posix.cc 482 size_t num_fds = payload_size / sizeof(int); variable
483 if (num_fds == 0 || payload_size % sizeof(int) != 0)
487 if (!CloseHandles(fds, num_fds))
499 // Closes handles referenced by |fds|. Returns false if |num_fds| is 0, or if
501 bool CloseHandles(const int* fds, size_t num_fds) {
503 if (!num_fds)
518 for (; i < num_fds && it != handles_to_close_->end(); i++, ++it) {
524 if (i != num_fds)
  /device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_socket.c 629 int num_fds = 0; local
648 num_fds = TUNESERVER_MAX(server_socket, prev_server_socket);
649 LOGH("num_fds = %d\n", num_fds);
663 result = select(num_fds + 1, &tsfds, NULL, NULL, NULL);
688 num_fds = TUNESERVER_MAX(num_fds, client_socket);
783 num_fds = TUNESERVER_MAX(num_fds, prev_client_socket);
  /external/libmojo/ipc/
ipc_message.cc 54 header()->num_fds = 0;
67 header()->num_fds = 0;
ipc_message.h 246 uint16_t num_fds; // the number of descriptors included with this message member in struct:IPC::Message::Header
  /hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
mm_qcamera_socket.c 630 int num_fds = 0; local
649 num_fds = TUNESERVER_MAX(server_socket, prev_server_socket);
650 LOGH("num_fds = %d\n", num_fds);
664 result = select(num_fds + 1, &tsfds, NULL, NULL, NULL);
689 num_fds = TUNESERVER_MAX(num_fds, client_socket);
784 num_fds = TUNESERVER_MAX(num_fds, prev_client_socket);
  /external/adhd/scripts/audio_thread_log_viewer/
viewer_c3.py 131 <label><input type="checkbox" onclick="handleClick(this);" id="wake">Show wake by num_fds=1 event</label>
298 def __init__(self, time, name, num_fds):
303 @param num_fds: A string for number of fd that wakes audio thread up.
309 if num_fds != '0':
310 self._text = 'num_fds %s' % num_fds
464 return WakeEvent(time, name, num_fds=props['num_fds'])
  /external/libmojo/mojo/edk/embedder/
platform_channel_utils_posix.cc 237 size_t num_fds = payload_length / sizeof(int); local
239 for (size_t i = 0; i < num_fds; i++) {
  /bionic/libc/kernel/uapi/linux/android/
binder.h 80 binder_size_t num_fds; member in struct:binder_fd_array_object
  /external/kernel-headers/original/uapi/linux/android/
binder.h 137 * @num_fds: number of file descriptors in the buffer
158 binder_size_t num_fds; member in struct:binder_fd_array_object

Completed in 2844 milliseconds

1 2