/kernel/ |
D | audit_tree.c | 17 struct list_head list; member 32 struct list_head list; member 84 INIT_LIST_HEAD(&tree->list); in alloc_tree() 154 INIT_LIST_HEAD(&chunk->owners[i].list); in alloc_chunk() 176 struct list_head *list; in insert_hash() local 180 list = chunk_hash(entry->inode); in insert_hash() 181 list_add_rcu(&chunk->hash, list); in insert_hash() 187 struct list_head *list = chunk_hash(inode); in audit_tree_lookup() local 190 list_for_each_entry_rcu(p, list, hash) { in audit_tree_lookup() 250 list_del_init(&p->list); in untag_chunk() [all …]
|
D | kprobes.c | 100 struct list_head list; member 154 list_for_each_entry(kip, &c->pages, list) { in __get_insn_slot() 190 INIT_LIST_HEAD(&kip->list); in __get_insn_slot() 196 list_add(&kip->list, &c->pages); in __get_insn_slot() 215 if (!list_is_singular(&kip->list)) { in collect_one_slot() 216 list_del(&kip->list); in collect_one_slot() 232 list_for_each_entry_safe(kip, next, &c->pages, list) { in collect_garbage_slots() 253 list_for_each_entry(kip, &c->pages, list) { in __free_insn_slot() 331 list_empty(&p->list); in kprobe_unused() 355 list_for_each_entry_rcu(kp, &p->list, list) { in opt_pre_handler() [all …]
|
D | taskstats.c | 66 struct list_head list; member 73 struct list_head list; member 140 list_for_each_entry(s, &listeners->list, list) { in send_cpu_listeners() 142 if (!list_is_last(&s->list, &listeners->list)) { in send_cpu_listeners() 164 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in send_cpu_listeners() 166 list_del(&s->list); in send_cpu_listeners() 312 list_for_each_entry(s2, &listeners->list, list) { in add_del_listener() 316 list_add(&s->list, &listeners->list); in add_del_listener() 330 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in add_del_listener() 332 list_del(&s->list); in add_del_listener() [all …]
|
D | auditfilter.c | 176 int __init audit_register_class(int class, unsigned *list) in audit_register_class() argument 181 while (*list != ~0U) { in audit_register_class() 182 unsigned n = *list++; in audit_register_class() 866 struct list_head *list; in audit_find_rule() local 871 *p = list = &audit_inode_hash[h]; in audit_find_rule() 875 list = &audit_inode_hash[h]; in audit_find_rule() 876 list_for_each_entry(e, list, list) in audit_find_rule() 884 *p = list = &audit_filter_list[entry->rule.listnr]; in audit_find_rule() 887 list_for_each_entry(e, list, list) in audit_find_rule() 906 struct list_head *list; in audit_add_rule() local [all …]
|
D | softirq.c | 501 struct tasklet_struct *list; in tasklet_action() local 504 list = __this_cpu_read(tasklet_vec.head); in tasklet_action() 509 while (list) { in tasklet_action() 510 struct tasklet_struct *t = list; in tasklet_action() 512 list = list->next; in tasklet_action() 537 struct tasklet_struct *list; in tasklet_hi_action() local 540 list = __this_cpu_read(tasklet_hi_vec.head); in tasklet_hi_action() 545 while (list) { in tasklet_hi_action() 546 struct tasklet_struct *t = list; in tasklet_hi_action() 548 list = list->next; in tasklet_hi_action()
|
D | padata.c | 78 list_replace_init(&pqueue->parallel.list, &local_list); in padata_parallel_worker() 85 struct padata_priv, list); in padata_parallel_worker() 87 list_del_init(&padata->list); in padata_parallel_worker() 141 list_add_tail(&padata->list, &queue->parallel.list); in padata_do_parallel() 194 if (!list_empty(&reorder->list)) { in padata_get_next() 195 padata = list_entry(reorder->list.next, in padata_get_next() 196 struct padata_priv, list); in padata_get_next() 198 list_del_init(&padata->list); in padata_get_next() 265 list_add_tail(&padata->list, &squeue->serial.list); in padata_reorder() 305 list_replace_init(&squeue->serial.list, &local_list); in padata_serial_worker() [all …]
|
D | futex.c | 202 struct list_head list; member 238 struct plist_node list; member 747 plist_for_each_entry(this, &hb->chain, list) { in futex_top_waiter() 793 INIT_LIST_HEAD(&pi_state->list); in refill_pi_state_cache() 834 list_del_init(&pi_state->list); in put_pi_state() 895 pi_state = list_entry(next, struct futex_pi_state, list); in exit_pi_state_list() 913 WARN_ON(list_empty(&pi_state->list)); in exit_pi_state_list() 914 list_del_init(&pi_state->list); in exit_pi_state_list() 1109 WARN_ON(!list_empty(&pi_state->list)); in attach_to_pi_owner() 1110 list_add(&pi_state->list, &p->pi_state_list); in attach_to_pi_owner() [all …]
|
D | audit_watch.c | 294 list_del_rcu(&oentry->list); in audit_update_watch() 298 list_del(&oentry->rule.list); in audit_update_watch() 312 list_add_rcu(&nentry->list, &audit_inode_hash[h]); in audit_update_watch() 313 list_replace(&oentry->rule.list, in audit_update_watch() 314 &nentry->rule.list); in audit_update_watch() 351 list_del(&r->list); in audit_remove_parent_watches() 352 list_del_rcu(&e->list); in audit_remove_parent_watches() 415 int audit_add_watch(struct audit_krule *krule, struct list_head **list) in audit_add_watch() argument 446 *list = &audit_inode_hash[h]; in audit_add_watch()
|
/kernel/power/ |
D | qos.c | 68 .list = PLIST_HEAD_INIT(cpu_dma_constraints.list), 82 .list = PLIST_HEAD_INIT(network_lat_constraints.list), 97 .list = PLIST_HEAD_INIT(network_tput_constraints.list), 112 .list = PLIST_HEAD_INIT(memory_bw_constraints.list), 154 if (plist_head_empty(&c->list)) in pm_qos_get_value() 159 return plist_first(&c->list)->prio; in pm_qos_get_value() 162 return plist_last(&c->list)->prio; in pm_qos_get_value() 165 plist_for_each(node, &c->list) in pm_qos_get_value() 210 if (plist_head_empty(&c->list)) { in pm_qos_dbg_show_requests() 229 plist_for_each_entry(req, &c->list, node) { in pm_qos_dbg_show_requests() [all …]
|
D | snapshot.c | 233 static inline void free_list_of_pages(struct linked_page *list, in free_list_of_pages() argument 236 while (list) { in free_list_of_pages() 237 struct linked_page *lp = list->next; in free_list_of_pages() 239 free_image_page(list, clear_page_nosave); in free_list_of_pages() 240 list = lp; in free_list_of_pages() 347 struct list_head list; member 356 struct list_head list; /* Link Zones together */ member 402 struct list_head *list) in alloc_rtree_node() argument 414 list_add_tail(&node->list, list); in alloc_rtree_node() 539 list_for_each_entry(node, &zone->nodes, list) in free_zone_bm_rtree() [all …]
|
/kernel/locking/ |
D | rwsem-spinlock.c | 18 struct list_head list; member 71 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); in __rwsem_do_wake() 84 struct list_head *next = waiter->list.next; in __rwsem_do_wake() 86 list_del(&waiter->list); in __rwsem_do_wake() 102 waiter = list_entry(next, struct rwsem_waiter, list); in __rwsem_do_wake() 119 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); in __rwsem_wake_one_writer() 151 list_add_tail(&waiter.list, &sem->wait_list); in __down_read() 207 list_add_tail(&waiter.list, &sem->wait_list); in __down_write_common() 228 list_del(&waiter.list); in __down_write_common() 235 list_del(&waiter.list); in __down_write_common()
|
D | mutex-debug.c | 34 INIT_LIST_HEAD(&waiter->list); in debug_mutex_lock_common() 42 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in debug_mutex_wake_waiter() 47 DEBUG_LOCKS_WARN_ON(!list_empty(&waiter->list)); in debug_mutex_free_waiter() 63 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in mutex_remove_waiter() 68 list_del_init(&waiter->list); in mutex_remove_waiter()
|
D | semaphore.c | 194 struct list_head list; member 210 list_add_tail(&waiter.list, &sem->wait_list); in __down_common() 228 list_del(&waiter.list); in __down_common() 232 list_del(&waiter.list); in __down_common() 259 struct semaphore_waiter, list); in __up() 260 list_del(&waiter->list); in __up()
|
D | rwsem-xadd.c | 100 struct list_head list; member 135 waiter = list_first_entry(&sem->wait_list, struct rwsem_waiter, list); in __rwsem_mark_wake() 189 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in __rwsem_mark_wake() 199 list_del(&waiter->list); in __rwsem_mark_wake() 236 list_add_tail(&waiter.list, &sem->wait_list); in rwsem_down_read_failed() 486 list_add_tail(&waiter.list, &sem->wait_list); in __rwsem_down_write_failed_common() 533 list_del(&waiter.list); in __rwsem_down_write_failed_common() 541 list_del(&waiter.list); in __rwsem_down_write_failed_common()
|
/kernel/time/ |
D | clockevents.c | 354 struct clock_event_device, list); in clockevents_notify_released() 355 list_del(&dev->list); in clockevents_notify_released() 356 list_add(&dev->list, &clockevent_devices); in clockevents_notify_released() 368 list_for_each_entry(dev, &clockevent_devices, list) { in clockevents_replace() 384 list_del_init(&ced->list); in clockevents_replace() 396 list_del_init(&ced->list); in __clockevents_try_unbind() 463 list_add(&dev->list, &clockevent_devices); in clockevents_register_device() 578 list_del(&old->list); in clockevents_exchange_device() 579 list_add(&old->list, &clockevents_released); in clockevents_exchange_device() 595 list_for_each_entry_reverse(dev, &clockevent_devices, list) in clockevents_suspend() [all …]
|
D | clocksource.c | 341 list_for_each_entry(cs, &clocksource_list, list) { in clocksource_select_watchdog() 452 list_for_each_entry_reverse(cs, &clocksource_list, list) in clocksource_suspend() 464 list_for_each_entry(cs, &clocksource_list, list) in clocksource_resume() 570 list_for_each_entry(cs, &clocksource_list, list) { in clocksource_find_best() 591 list_for_each_entry(cs, &clocksource_list, list) { in __clocksource_select() 681 list_for_each_entry(tmp, &clocksource_list, list) { in clocksource_enqueue() 685 entry = &tmp->list; in clocksource_enqueue() 687 list_add(&cs->list, entry); in clocksource_enqueue() 788 list_del(&cs->list); in __clocksource_change_rating() 827 list_del_init(&cs->list); in clocksource_unbind() [all …]
|
/kernel/rcu/ |
D | tiny.c | 134 struct rcu_head *next, *list; in __rcu_process_callbacks() local 146 list = rcp->rcucblist; in __rcu_process_callbacks() 156 while (list) { in __rcu_process_callbacks() 157 next = list->next; in __rcu_process_callbacks() 159 debug_rcu_head_unqueue(list); in __rcu_process_callbacks() 161 __rcu_reclaim(rn, list); in __rcu_process_callbacks() 163 list = next; in __rcu_process_callbacks()
|
D | update.c | 656 struct rcu_head *list; in rcu_tasks_kthread() local 673 list = rcu_tasks_cbs_head; in rcu_tasks_kthread() 679 if (!list) { in rcu_tasks_kthread() 784 while (list) { in rcu_tasks_kthread() 785 next = list->next; in rcu_tasks_kthread() 787 list->func(list); in rcu_tasks_kthread() 789 list = next; in rcu_tasks_kthread()
|
/kernel/trace/ |
D | ring_buffer.c | 300 struct list_head list; /* list of buffer pages */ member 800 static struct list_head *rb_list_head(struct list_head *list) in rb_list_head() argument 802 unsigned long val = (unsigned long)list; in rb_list_head() 817 struct buffer_page *page, struct list_head *list) in rb_is_head_page() argument 821 val = (unsigned long)list->next; in rb_is_head_page() 823 if ((val & ~RB_FLAG_MASK) != (unsigned long)&page->list) in rb_is_head_page() 838 struct list_head *list = page->list.prev; in rb_is_reader_page() local 840 return rb_list_head(list->next) != &page->list; in rb_is_reader_page() 847 struct list_head *list) in rb_set_list_to_head() argument 851 ptr = (unsigned long *)&list->next; in rb_set_list_to_head() [all …]
|
D | trace_events_trigger.c | 74 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call() 114 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_post_call() 165 list_for_each_entry_reverse(p, &trigger_commands, list) in trigger_show() 172 data = list_entry(v, struct event_trigger_data, list); in trigger_show() 203 list_for_each_entry(p, &trigger_commands, list) { in event_trigger_regex_open() 232 list_for_each_entry(p, &trigger_commands, list) { in trigger_process_regex() 333 list_for_each_entry(p, &trigger_commands, list) { in register_event_command() 339 list_add(&cmd->list, &trigger_commands); in register_event_command() 356 list_for_each_entry_safe(p, n, &trigger_commands, list) { in unregister_event_command() 359 list_del_init(&p->list); in unregister_event_command() [all …]
|
D | trace_event_perf.c | 92 struct hlist_head __percpu *list; in perf_trace_event_reg() local 100 list = alloc_percpu(struct hlist_head); in perf_trace_event_reg() 101 if (!list) in perf_trace_event_reg() 105 INIT_HLIST_HEAD(per_cpu_ptr(list, cpu)); in perf_trace_event_reg() 107 tp_event->perf_events = list; in perf_trace_event_reg() 217 list_for_each_entry(tp_event, &ftrace_events, list) { in perf_trace_init() 244 struct hlist_head *list; in perf_trace_add() local 253 list = this_cpu_ptr(pcpu_list); in perf_trace_add() 254 hlist_add_head_rcu(&p_event->hlist_entry, list); in perf_trace_add()
|
D | trace_printk.c | 32 struct list_head list; member 43 list_for_each_entry(pos, &trace_bprintk_fmt_list, list) { in lookup_format() 74 list_add_tail(&tb_fmt->list, &trace_bprintk_fmt_list); in hold_module_trace_bprintk_format() 138 list_for_each_entry(p, &trace_bprintk_fmt_list, list) { in find_next_mod_format() 152 if (mod_fmt->list.next == &trace_bprintk_fmt_list) in find_next_mod_format() 155 mod_fmt = container_of(mod_fmt->list.next, typeof(*mod_fmt), list); in find_next_mod_format()
|
D | trace_events.c | 61 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 62 list_for_each_entry(file, &tr->events, list) 65 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 67 list_for_each_entry_safe(file, ___n, &tr->events, list) 503 list_for_each_entry(file, &tr->events, list) { in ftrace_clear_events() 629 list_for_each_entry(file, &tr->events, list) { in __ftrace_clear_event_pids() 659 list_del(&system->list); in __put_system() 707 list_del(&dir->list); in remove_subsystem() 728 list_del(&file->list); in remove_event_file_dir() 746 list_for_each_entry(file, &tr->events, list) { in __ftrace_set_clr_event_nolock() [all …]
|
D | trace_events_filter.c | 112 struct list_head list; member 118 struct list_head list; member 892 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_preds() 910 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_filters() 1178 list_add(&opstack_op->list, &ps->opstack); in filter_opstack_push() 1195 opstack_op = list_first_entry(&ps->opstack, struct opstack_op, list); in filter_opstack_top() 1208 opstack_op = list_first_entry(&ps->opstack, struct opstack_op, list); in filter_opstack_pop() 1210 list_del(&opstack_op->list); in filter_opstack_pop() 1243 list_add_tail(&elt->list, &ps->postfix); in postfix_append_operand() 1259 list_add_tail(&elt->list, &ps->postfix); in postfix_append_op() [all …]
|
/kernel/livepatch/ |
D | core.c | 125 list_for_each_entry(mypatch, &klp_patches, list) in klp_is_patch_registered() 487 if (!list_is_last(&patch->list, &klp_patches) && in __klp_disable_patch() 488 list_next_entry(patch, list)->state == KLP_ENABLED) in __klp_disable_patch() 544 if (patch->list.prev != &klp_patches && in __klp_enable_patch() 545 list_prev_entry(patch, list)->state == KLP_DISABLED) in __klp_enable_patch() 738 if (!list_empty(&patch->list)) in klp_free_patch() 739 list_del(&patch->list); in klp_free_patch() 858 list_add_tail(&patch->list, &klp_patches); in klp_init_patch() 964 list_for_each_entry(patch, &klp_patches, list) { in klp_module_coming() 1030 list_for_each_entry(patch, &klp_patches, list) { in klp_module_going()
|