Lines Matching refs:listeners
111 struct listener_list *listeners) in send_cpu_listeners() argument
121 down_read(&listeners->sem); in send_cpu_listeners()
122 list_for_each_entry(s, &listeners->list, list) { in send_cpu_listeners()
126 if (!list_is_last(&s->list, &listeners->list)) { in send_cpu_listeners()
138 up_read(&listeners->sem); in send_cpu_listeners()
147 down_write(&listeners->sem); in send_cpu_listeners()
148 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in send_cpu_listeners()
154 up_write(&listeners->sem); in send_cpu_listeners()
298 struct listener_list *listeners; in add_del_listener() local
323 listeners = &per_cpu(listener_array, cpu); in add_del_listener()
324 down_write(&listeners->sem); in add_del_listener()
325 list_for_each_entry(s2, &listeners->list, list) { in add_del_listener()
329 list_add(&s->list, &listeners->list); in add_del_listener()
332 up_write(&listeners->sem); in add_del_listener()
341 listeners = &per_cpu(listener_array, cpu); in add_del_listener()
342 down_write(&listeners->sem); in add_del_listener()
343 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in add_del_listener()
350 up_write(&listeners->sem); in add_del_listener()
608 struct listener_list *listeners; in taskstats_exit() local
630 listeners = raw_cpu_ptr(&listener_array); in taskstats_exit()
631 if (list_empty(&listeners->list)) in taskstats_exit()
661 send_cpu_listeners(rep_skb, listeners); in taskstats_exit()