有些网络设备和网络子系统必须由独特的网络命名空间数据,为了提供这种支持,添加了结构pernet_operations,其包含回调函数init和exit,
用于执行设备初始化和清理工作。
linux-4.1.2\net
include/net/net_namespace.h
277 struct pernet_operations {
278 struct list_head list;
279 int (*init)(struct net *net);
280 void (*exit)(struct net *net);
281 void (*exit_batch)(struct list_head *net_exit_list);
282 int *id;
283 size_t size;
284 };
285
pernet_operations 638 8021q/vlan.c static struct pernet_operations vlan_net_ops = {
pernet_operations 181 bridge/br.c static struct pernet_operations br_net_ops = {
pernet_operations 73 bridge/netfilter/ebtable_broute.c static struct pernet_operations broute_net_ops = {
pernet_operations 110 bridge/netfilter/ebtable_filter.c static struct pernet_operations frame_filter_net_ops = {
pernet_operations 110 bridge/netfilter/ebtable_nat.c static struct pernet_operations frame_nat_net_ops = {
pernet_operations 62 bridge/netfilter/nf_log_bridge.c static struct pernet_operations nf_log_bridge_net_ops = {
pernet_operations 150 bridge/netfilter/nf_tables_bridge.c static struct pernet_operations nf_tables_bridge_net_ops = {
pernet_operations 543 caif/caif_dev.c static struct pernet_operations caif_net_ops = {
pernet_operations 7338 core/dev.c static struct pernet_operations __net_initdata netdev_net_ops = {
pernet_operations 7438 core/dev.c static struct pernet_operations __net_initdata default_device_ops = {
pernet_operations 769 core/fib_rules.c static struct pernet_operations fib_rules_net_ops = {
pernet_operations 350 core/net-procfs.c static struct pernet_operations __net_initdata dev_proc_ops = {
pernet_operations 412 core/net-procfs.c static struct pernet_operations __net_initdata dev_mc_net_ops = {
pernet_operations 236 core/net_namespace.c const struct pernet_operations *ops, *saved_ops;
pernet_operations 347 core/net_namespace.c const struct pernet_operations *ops;
pernet_operations 484 core/net_namespace.c static struct pernet_operations __net_initdata net_ns_ops = {
pernet_operations 3819 core/pktgen.c static struct pernet_operations pg_net_ops = {
pernet_operations 3314 core/rtnetlink.c static struct pernet_operations rtnetlink_net_ops = {
pernet_operations 2674 core/sock.c static struct pernet_operations net_inuse_ops = {
pernet_operations 2967 core/sock.c static __net_initdata struct pernet_operations proto_net_ops = {
pernet_operations 230 core/sock_diag.c static struct pernet_operations diag_net_ops = {
pernet_operations 453 core/sysctl_net_core.c static __net_initdata struct pernet_operations sysctl_core_ops = {
pernet_operations 1040 dccp/ipv4.c static struct pernet_operations dccp_v4_ops = {
pernet_operations 1095 dccp/ipv6.c static struct pernet_operations dccp_v6_ops = {
pernet_operations 545 ieee802154/6lowpan/reassembly.c static struct pernet_operations lowpan_frags_ops = {
pernet_operations 3787 include/linux/netdevice.h extern struct pernet_operations __net_initdata loopback_net_ops;
pernet_operations 1585 ipv4/af_inet.c static __net_initdata struct pernet_operations ipv4_mib_ops = {
pernet_operations 1618 ipv4/af_inet.c static __net_initdata struct pernet_operations af_inet_ops = {
pernet_operations 1358 ipv4/arp.c static struct pernet_operations arp_net_ops = {
pernet_operations 2351 ipv4/devinet.c static __net_initdata struct pernet_operations devinet_ops = {
pernet_operations 1235 ipv4/fib_frontend.c static struct pernet_operations fib_net_ops = {
pernet_operations 958 ipv4/fou.c static struct pernet_operations fou_net_ops = {
pernet_operations 424 ipv4/geneve.c static struct pernet_operations geneve_net_ops = {
pernet_operations 1210 ipv4/icmp.c static struct pernet_operations __net_initdata icmp_sk_ops = {
pernet_operations 2753 ipv4/igmp.c static struct pernet_operations igmp_net_ops = {
pernet_operations 852 ipv4/ip_fragment.c static struct pernet_operations ip4_frags_ops = {
pernet_operations 550 ipv4/ip_gre.c static struct pernet_operations ipgre_net_ops = {
pernet_operations 863 ipv4/ip_gre.c static struct pernet_operations ipgre_tap_net_ops = {
pernet_operations 431 ipv4/ip_vti.c static struct pernet_operations vti_net_ops = {
pernet_operations 521 ipv4/ipip.c static struct pernet_operations ipip_net_ops = {
pernet_operations 2749 ipv4/ipmr.c static struct pernet_operations ipmr_net_ops = {
pernet_operations 1880 ipv4/netfilter/arp_tables.c static struct pernet_operations arp_tables_net_ops = {
pernet_operations 59 ipv4/netfilter/arptable_filter.c static struct pernet_operations arptable_filter_net_ops = {
pernet_operations 2230 ipv4/netfilter/ip_tables.c static struct pernet_operations ip_tables_net_ops = {
pernet_operations 746 ipv4/netfilter/ipt_CLUSTERIP.c static struct pernet_operations clusterip_net_ops = {
pernet_operations 79 ipv4/netfilter/iptable_filter.c static struct pernet_operations iptable_filter_net_ops = {
pernet_operations 117 ipv4/netfilter/iptable_mangle.c static struct pernet_operations iptable_mangle_net_ops = {
pernet_operations 121 ipv4/netfilter/iptable_nat.c static struct pernet_operations iptable_nat_net_ops = {
pernet_operations 58 ipv4/netfilter/iptable_raw.c static struct pernet_operations iptable_raw_net_ops = {
pernet_operations 76 ipv4/netfilter/iptable_security.c static struct pernet_operations iptable_security_net_ops = {
pernet_operations 446 ipv4/netfilter/nf_conntrack_l3proto_ipv4.c static struct pernet_operations ipv4_net_ops = {
pernet_operations 456 ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c static struct pernet_operations ip_conntrack_net_ops = {
pernet_operations 123 ipv4/netfilter/nf_log_arp.c static struct pernet_operations nf_log_arp_net_ops = {
pernet_operations 359 ipv4/netfilter/nf_log_ipv4.c static struct pernet_operations nf_log_ipv4_net_ops = {
pernet_operations 64 ipv4/netfilter/nf_tables_arp.c static struct pernet_operations nf_tables_arp_net_ops = {
pernet_operations 85 ipv4/netfilter/nf_tables_ipv4.c static struct pernet_operations nf_tables_ipv4_net_ops = {
pernet_operations 1199 ipv4/ping.c static struct pernet_operations ping_v4_net_ops = {
pernet_operations 531 ipv4/proc.c static __net_initdata struct pernet_operations ip_proc_ops = {
pernet_operations 1086 ipv4/raw.c static __net_initdata struct pernet_operations raw_net_ops = {
pernet_operations 411 ipv4/route.c static struct pernet_operations ip_rt_proc_ops __net_initdata = {
pernet_operations 2686 ipv4/route.c static __net_initdata struct pernet_operations sysctl_route_ops = {
pernet_operations 2701 ipv4/route.c static __net_initdata struct pernet_operations rt_genid_ops = {
pernet_operations 2725 ipv4/route.c static __net_initdata struct pernet_operations ipv4_inetpeer_ops = {
pernet_operations 949 ipv4/sysctl_net_ipv4.c static __net_initdata struct pernet_operations ipv4_sysctl_ops = {
pernet_operations 2322 ipv4/tcp_ipv4.c static struct pernet_operations tcp4_net_ops = {
pernet_operations 2430 ipv4/tcp_ipv4.c static struct pernet_operations __net_initdata tcp_sk_ops = {
pernet_operations 1181 ipv4/tcp_metrics.c static __net_initdata struct pernet_operations tcp_net_metrics_ops = {
pernet_operations 2471 ipv4/udp.c static struct pernet_operations udp4_net_ops = {
pernet_operations 106 ipv4/udplite.c static struct pernet_operations udplite4_net_ops = {
pernet_operations 310 ipv4/xfrm4_policy.c static struct pernet_operations __net_initdata xfrm4_net_ops = {
pernet_operations 3787 ipv6/addrconf.c static struct pernet_operations if6_proc_net_ops = {
pernet_operations 5720 ipv6/addrconf.c static struct pernet_operations addrconf_ops = {
pernet_operations 385 ipv6/addrlabel.c static struct pernet_operations ipv6_addr_label_ops = {
pernet_operations 810 ipv6/af_inet6.c static struct pernet_operations inet6_net_ops = {
pernet_operations 323 ipv6/fib6_rules.c static struct pernet_operations fib6_rules_net_ops = {
pernet_operations 888 ipv6/icmp.c static struct pernet_operations icmpv6_sk_ops = {
pernet_operations 1834 ipv6/ip6_fib.c static struct pernet_operations fib6_net_ops = {
pernet_operations 867 ipv6/ip6_flowlabel.c static struct pernet_operations ip6_flowlabel_net_ops = {
pernet_operations 1366 ipv6/ip6_gre.c static struct pernet_operations ip6gre_net_ops = {
pernet_operations 1881 ipv6/ip6_tunnel.c static struct pernet_operations ip6_tnl_net_ops = {
pernet_operations 1102 ipv6/ip6_vti.c static struct pernet_operations vti6_net_ops = {
pernet_operations 1399 ipv6/ip6mr.c static struct pernet_operations ip6mr_net_ops = {
pernet_operations 2938 ipv6/mcast.c static struct pernet_operations igmp6_net_ops = {
pernet_operations 1769 ipv6/ndisc.c static struct pernet_operations ndisc_net_ops = {
pernet_operations 2243 ipv6/netfilter/ip6_tables.c static struct pernet_operations ip6_tables_net_ops = {
pernet_operations 71 ipv6/netfilter/ip6table_filter.c static struct pernet_operations ip6table_filter_net_ops = {
pernet_operations 111 ipv6/netfilter/ip6table_mangle.c static struct pernet_operations ip6table_mangle_net_ops = {
pernet_operations 123 ipv6/netfilter/ip6table_nat.c static struct pernet_operations ip6table_nat_net_ops = {
pernet_operations 50 ipv6/netfilter/ip6table_raw.c static struct pernet_operations ip6table_raw_net_ops = {
pernet_operations 68 ipv6/netfilter/ip6table_security.c static struct pernet_operations ip6table_security_net_ops = {
pernet_operations 388 ipv6/netfilter/nf_conntrack_l3proto_ipv6.c static struct pernet_operations ipv6_net_ops = {
pernet_operations 665 ipv6/netfilter/nf_conntrack_reasm.c static struct pernet_operations nf_ct_net_ops = {
pernet_operations 391 ipv6/netfilter/nf_log_ipv6.c static struct pernet_operations nf_log_ipv6_net_ops = {
pernet_operations 84 ipv6/netfilter/nf_tables_ipv6.c static struct pernet_operations nf_tables_ipv6_net_ops = {
pernet_operations 237 ipv6/ping.c static struct pernet_operations ping_v6_net_ops = {
pernet_operations 332 ipv6/proc.c static struct pernet_operations ipv6_proc_ops = {
pernet_operations 1275 ipv6/raw.c static struct pernet_operations raw6_net_ops = {
pernet_operations 724 ipv6/reassembly.c static struct pernet_operations ip6_frags_ops = {
pernet_operations 3176 ipv6/route.c static struct pernet_operations ip6_route_net_ops = {
pernet_operations 3201 ipv6/route.c static struct pernet_operations ipv6_inetpeer_ops = {
pernet_operations 3206 ipv6/route.c static struct pernet_operations ip6_route_net_late_ops = {
pernet_operations 1866 ipv6/sit.c static struct pernet_operations sit_net_ops = {
pernet_operations 170 ipv6/sysctl_net_ipv6.c static struct pernet_operations ipv6_sysctl_net_ops = {
pernet_operations 1904 ipv6/tcp_ipv6.c static struct pernet_operations tcpv6_net_ops = {
pernet_operations 125 ipv6/udplite.c static struct pernet_operations udplite6_net_ops = {
pernet_operations 380 ipv6/xfrm6_policy.c static struct pernet_operations xfrm6_net_ops = {
pernet_operations 343 ipv6/xfrm6_tunnel.c static struct pernet_operations xfrm6_tunnel_net_ops = {
pernet_operations 3825 key/af_key.c static struct pernet_operations pfkey_net_ops = {
pernet_operations 1856 /_core.c static struct pernet_operations _net_ops = {
pernet_operations 313 /_eth.c static struct pernet_operations _eth_net_ops = {
pernet_operations 1765 /_ppp.c static struct pernet_operations pppo_net_ops = {
pernet_operations 1108 mpls/af_mpls.c static struct pernet_operations mpls_net_ops = {
pernet_operations 290 netfilter/core.c static struct pernet_operations netfilter_net_ops = {
pernet_operations 1999 netfilter/ipset/ip_set_core.c static struct pernet_operations ip_set_net_ops = {
pernet_operations 2051 netfilter/ipvs/ip_vs_core.c static struct pernet_operations ipvs_core_ops = {
pernet_operations 2058 netfilter/ipvs/ip_vs_core.c static struct pernet_operations ipvs_core_dev_ops = {
pernet_operations 477 netfilter/ipvs/ip_vs_ftp.c static struct pernet_operations ip_vs_ftp_ops = {
pernet_operations 604 netfilter/ipvs/ip_vs_lblc.c static struct pernet_operations ip_vs_lblc_ops = {
pernet_operations 789 netfilter/ipvs/ip_vs_lblcr.c static struct pernet_operations ip_vs_lblcr_ops = {
pernet_operations 3234 netfilter/nf_conntrack_netlink.c static struct pernet_operations ctnetlink_net_ops = {
pernet_operations 962 netfilter/nf_conntrack_proto_dccp.c static struct pernet_operations dccp_net_ops = {
pernet_operations 412 netfilter/nf_conntrack_proto_gre.c static struct pernet_operations proto_gre_net_ops = {
pernet_operations 883 netfilter/nf_conntrack_proto_sctp.c static struct pernet_operations sctp_net_ops = {
pernet_operations 363 netfilter/nf_conntrack_proto_udplite.c static struct pernet_operations udplite_net_ops = {
pernet_operations 557 netfilter/nf_conntrack_standalone.c static struct pernet_operations nf_conntrack_net_ops = {
pernet_operations 526 netfilter/nf_log.c static struct pernet_operations nf_log_net_ops = {
pernet_operations 837 netfilter/nf_nat_core.c static struct pernet_operations nf_nat_net_ops = {
pernet_operations 397 netfilter/nf_synproxy_core.c static struct pernet_operations synproxy_net_ops = {
pernet_operations 4521 netfilter/nf_tables_api.c static struct pernet_operations nf_tables_net_ops = {
pernet_operations 64 netfilter/nf_tables_inet.c static struct pernet_operations nf_tables_inet_net_ops = {
pernet_operations 515 netfilter/nfnetlink.c static struct pernet_operations nfnetlink_net_ops = {
pernet_operations 1067 netfilter/nfnetlink_log.c static struct pernet_operations nfnl_log_net_ops = {
pernet_operations 1311 netfilter/nfnetlink_queue_core.c static struct pernet_operations nfnl_queue_net_ops = {
pernet_operations 1320 netfilter/x_tables.c static struct pernet_operations xt_net_ops = {
pernet_operations 920 netfilter/xt_hashlimit.c static struct pernet_operations hashlimit_net_ops = {
pernet_operations 693 netfilter/xt_recent.c static struct pernet_operations recent_net_ops = {
pernet_operations 3124 netlink/af_netlink.c static struct pernet_operations __net_initdata netlink_net_ops = {
pernet_operations 1071 netlink/genetlink.c static struct pernet_operations genl_pernet_ops = {
pernet_operations 2249 openvswitch/datapath.c static struct pernet_operations ovs_net_ops = {
pernet_operations 4145 packet/af_packet.c static struct pernet_operations packet_net_ops = {
pernet_operations 337 phonet/pn_dev.c static struct pernet_operations phonet_net_ops = {
pernet_operations 1938 sched/sch_api.c static struct pernet_operations psched_net_ops = {
pernet_operations 1310 sctp/protocol.c static struct pernet_operations sctp_net_ops = {
pernet_operations 2042 sunrpc/auth_gss/auth_gss.c static struct pernet_operations rpcsec_gss_net_ops = {
pernet_operations 74 sunrpc/sunrpc_syms.c static struct pernet_operations sunrpc_net_ops = {
pernet_operations 78 sysctl_net.c static struct pernet_operations sysctl_pernet_ops = {
pernet_operations 92 tipc/core.c static struct pernet_operations tipc_net_ops = {
pernet_operations 2429 unix/af_unix.c static struct pernet_operations unix_net_ops = {
pernet_operations 1160 wireless/core.c static struct pernet_operations cfg80211_pernet_ops = {
pernet_operations 356 wireless/wext-core.c static struct pernet_operations wext_pernet_ops = {
pernet_operations 3095 xfrm/xfrm_policy.c static struct pernet_operations __net_initdata xfrm_net_ops = {
pernet_operations 3116 xfrm/xfrm_user.c static struct pernet_operations xfrm_user_net_ops = {