Lines Matching refs:s
114 struct listener *s, *tmp; in send_cpu_listeners() local
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()
131 rc = genlmsg_unicast(&init_net, skb_cur, s->pid); in send_cpu_listeners()
133 s->valid = 0; in send_cpu_listeners()
148 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in send_cpu_listeners()
149 if (!s->valid) { in send_cpu_listeners()
150 list_del(&s->list); in send_cpu_listeners()
151 kfree(s); in send_cpu_listeners()
299 struct listener *s, *tmp, *s2; in add_del_listener() local
314 s = kmalloc_node(sizeof(struct listener), in add_del_listener()
316 if (!s) { in add_del_listener()
320 s->pid = pid; in add_del_listener()
321 s->valid = 1; in add_del_listener()
329 list_add(&s->list, &listeners->list); in add_del_listener()
330 s = NULL; in add_del_listener()
333 kfree(s); /* nop if NULL */ in add_del_listener()
343 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in add_del_listener()
344 if (s->pid == pid) { in add_del_listener()
345 list_del(&s->list); in add_del_listener()
346 kfree(s); in add_del_listener()