Searched refs:old_net (Results 1 – 5 of 5) sorted by relevance
72 static int unshare_net(int old_net) in unshare_net() argument84 setns(old_net, CLONE_NEWNET); in unshare_net()440 int err, link, old_net; in test_link_update_netns_gone() local442 old_net = netns; in test_link_update_netns_gone()443 netns = unshare_net(old_net); in test_link_update_netns_gone()455 err = setns(old_net, CLONE_NEWNET); in test_link_update_netns_gone()480 int err, link, old_net; in test_link_get_info() local482 old_net = netns; in test_link_get_info()483 netns = unshare_net(old_net); in test_link_get_info()539 err = setns(old_net, CLONE_NEWNET); in test_link_get_info()[all …]
200 struct net *old_net);212 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument216 return old_net; in copy_net_ns()
467 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument474 return get_net(old_net); in copy_net_ns()
3527 struct net *old_net; in udp_set_table() local3532 old_net = current->nsproxy->net_ns; in udp_set_table()3533 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()
3406 struct net *old_net; local3411 old_net = current->nsproxy->net_ns;3412 ehash_entries = READ_ONCE(old_net->ipv4.sysctl_tcp_child_ehash_entries);