Lines Matching refs:ue_sk
314 struct uevent_sock *ue_sk; in uevent_net_broadcast_untagged() local
318 list_for_each_entry(ue_sk, &uevent_sock_list, list) { in uevent_net_broadcast_untagged()
319 struct sock *uevent_sock = ue_sk->sk; in uevent_net_broadcast_untagged()
759 struct uevent_sock *ue_sk; in uevent_net_init() local
766 ue_sk = kzalloc(sizeof(*ue_sk), GFP_KERNEL); in uevent_net_init()
767 if (!ue_sk) in uevent_net_init()
770 ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, &cfg); in uevent_net_init()
771 if (!ue_sk->sk) { in uevent_net_init()
773 kfree(ue_sk); in uevent_net_init()
777 net->uevent_sock = ue_sk; in uevent_net_init()
780 if (sock_net(ue_sk->sk)->user_ns == &init_user_ns) { in uevent_net_init()
782 list_add_tail(&ue_sk->list, &uevent_sock_list); in uevent_net_init()
791 struct uevent_sock *ue_sk = net->uevent_sock; in uevent_net_exit() local
793 if (sock_net(ue_sk->sk)->user_ns == &init_user_ns) { in uevent_net_exit()
795 list_del(&ue_sk->list); in uevent_net_exit()
799 netlink_kernel_release(ue_sk->sk); in uevent_net_exit()
800 kfree(ue_sk); in uevent_net_exit()