Lines Matching refs:listeners
114 struct listener_list *listeners) in send_cpu_listeners() argument
125 down_read(&listeners->sem); in send_cpu_listeners()
126 list_for_each_entry(s, &listeners->list, list) { in send_cpu_listeners()
128 if (!list_is_last(&s->list, &listeners->list)) { in send_cpu_listeners()
140 up_read(&listeners->sem); in send_cpu_listeners()
149 down_write(&listeners->sem); in send_cpu_listeners()
150 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in send_cpu_listeners()
156 up_write(&listeners->sem); in send_cpu_listeners()
280 struct listener_list *listeners; in add_del_listener() local
305 listeners = &per_cpu(listener_array, cpu); in add_del_listener()
306 down_write(&listeners->sem); in add_del_listener()
307 list_for_each_entry(s2, &listeners->list, list) { in add_del_listener()
311 list_add(&s->list, &listeners->list); in add_del_listener()
314 up_write(&listeners->sem); in add_del_listener()
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_safe(s, tmp, &listeners->list, list) { in add_del_listener()
332 up_write(&listeners->sem); in add_del_listener()
590 struct listener_list *listeners; in taskstats_exit() local
612 listeners = raw_cpu_ptr(&listener_array); in taskstats_exit()
613 if (list_empty(&listeners->list)) in taskstats_exit()
641 send_cpu_listeners(rep_skb, listeners); in taskstats_exit()