Lines Matching refs:threads

22  *    (proc->threads, proc->waiting_threads, proc->nodes)
434 * @threads: rbtree of binder_threads in this proc
443 * @waiting_threads: threads currently waiting for proc work
465 * @max_threads: cap on number of binder threads
467 * @requested_threads: number of binder threads requested but not
471 * @requested_threads_started: number binder threads started
490 struct rb_root threads;
531 * @rb_node: element for proc->threads rbtree
561 * Bookkeeping structure for binder threads.
881 /* (e)poll-based threads require an explicit wakeup signal when
883 * messages without I/O block. Without it, threads risk waiting
993 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) {
1042 * will wake up threads that have called poll().
1065 * 1. All threads are busy handling transactions
1066 * In that case, one of those threads should call back into
1071 * over all threads not handling transaction work, and
1877 * by threads that are being released. When done with the binder_proc,
1879 * proc if appropriate (proc has been released, all threads have
1886 if (proc->is_dead && RB_EMPTY_ROOT(&proc->threads) &&
4780 * node to serialize with other threads that
5100 struct rb_node **p = &proc->threads.rb_node;
5123 rb_insert_color(&thread->rb_node, &proc->threads);
5191 * after we remove this thread from proc->threads.
5201 rb_erase(&thread->rb_node, &proc->threads);
5846 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) {
5858 "binder_flush: %d woke %d threads\n", proc->pid,
5947 int threads, nodes, incoming_refs, outgoing_refs, active_transactions;
5965 * remove all the threads
5970 threads = 0;
5972 while ((n = rb_first(&proc->threads))) {
5977 threads++;
6020 "%s: %d threads %d, nodes %d (ref %d), refs %d, active transactions %d\n",
6021 __func__, proc->pid, threads, nodes, incoming_refs,
6248 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n))
6412 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n))
6418 seq_printf(m, " threads: %d\n", count);
6419 seq_printf(m, " requested threads: %d+%d/%d\n"
6420 " ready threads %d\n"
6666 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) {