Searched refs:ue_sk (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/lib/
H A Dkobject_uevent.c177 struct uevent_sock *ue_sk; kobject_uevent_env() local
290 list_for_each_entry(ue_sk, &uevent_sock_list, list) { kobject_uevent_env()
291 struct sock *uevent_sock = ue_sk->sk; kobject_uevent_env()
416 struct uevent_sock *ue_sk; uevent_net_init() local
422 ue_sk = kzalloc(sizeof(*ue_sk), GFP_KERNEL); uevent_net_init()
423 if (!ue_sk) uevent_net_init()
426 ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, &cfg); uevent_net_init()
427 if (!ue_sk->sk) { uevent_net_init()
430 kfree(ue_sk); uevent_net_init()
434 list_add_tail(&ue_sk->list, &uevent_sock_list); uevent_net_init()
441 struct uevent_sock *ue_sk; uevent_net_exit() local
444 list_for_each_entry(ue_sk, &uevent_sock_list, list) { uevent_net_exit()
445 if (sock_net(ue_sk->sk) == net) uevent_net_exit()
452 list_del(&ue_sk->list); uevent_net_exit()
455 netlink_kernel_release(ue_sk->sk); uevent_net_exit()
456 kfree(ue_sk); uevent_net_exit()

Completed in 59 milliseconds