| /linux/include/net/ |
| H A D | net_namespace.h | 62 struct net { struct 66 refcount_t passive; /* To decide when the network argument 77 struct list_head list; /* list of network namespaces */ argument 78 struct list_head exit_list; /* To linked to call pernet exit argument 79 * methods on dead net ( argument 95 struct idr netns_ids; argument 100 * refcounted against netns argument 103 struct proc_dir_entry *proc_net; argument 104 struct proc_dir_entry *proc_net_stat; argument 110 struct sock *rtnl; /* rtnetlink socket */ argument [all …]
|
| /linux/include/linux/ |
| H A D | rtnetlink.h | 14 static inline int rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, in rtnetlink_maybe_send() 111 #define ASSERT_RTNL_NET(net) \ argument 118 #define rcu_dereference_rtnl_net(net, p) \ argument 120 #define rtnl_net_dereference(net, p) \ argument 122 #define rcu_replace_pointer_rtnl_net(net, rp, p) \ argument 125 static inline void __rtnl_net_lock(struct net *net) {} in __rtnl_net_lock() 126 static inline void __rtnl_net_unlock(struct net *net) {} in __rtnl_net_unlock() 128 static inline void rtnl_net_lock(struct net *net) in rtnl_net_lock() 133 static inline void rtnl_net_unlock(struct net *net) in rtnl_net_unlock() 138 static inline int rtnl_net_trylock(struct net *net) in rtnl_net_trylock() [all …]
|
| /linux/net/tipc/ |
| H A D | bcast.c | 77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() 86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() 91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() 96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() 107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() 147 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_inc_bearer_dst_cnt() 157 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_dec_bearer_dst_cnt() 177 static void tipc_bcbase_xmit(struct net *net, struct sk_buff_head *xmitq) in tipc_bcbase_xmit() 212 static void tipc_bcast_select_xmit_method(struct net *net, int dests, in tipc_bcast_select_xmit_method() 259 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit() [all …]
|
| H A D | bearer.c | 62 static struct tipc_bearer *bearer_get(struct net *net, int bearer_id) in bearer_get() 181 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find() 200 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id) in tipc_bearer_get_name() 216 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest() 227 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest() 247 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer() 381 static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b) in tipc_reset_bearer() 407 static void bearer_disable(struct net *net, struct tipc_bearer *b) in bearer_disable() 424 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, in tipc_enable_l2_media() 496 int tipc_l2_send_msg(struct net *net, struct sk_buff *skb, in tipc_l2_send_msg() [all …]
|
| H A D | net.c | 111 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() 126 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() 153 void tipc_net_stop(struct net *net) in tipc_net_stop() 166 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() 204 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local 230 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local 293 static int __tipc_nl_addr_legacy_get(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_addr_legacy_get() 327 struct net *net = sock_net(skb->sk); in tipc_nl_net_addr_legacy_get() local
|
| H A D | name_distr.c | 67 static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size, in named_prepare_buf() 88 struct sk_buff *tipc_named_publish(struct net *net, struct publication *p) in tipc_named_publish() 118 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *p) in tipc_named_withdraw() 150 static void named_distribute(struct net *net, struct sk_buff_head *list, in named_distribute() 206 void tipc_named_node_up(struct net *net, u32 dnode, u16 capabilities) in tipc_named_node_up() 235 static void tipc_publ_purge(struct net *net, struct publication *p, u32 addr) in tipc_publ_purge() 252 void tipc_publ_notify(struct net *net, struct list_head *nsub_list, in tipc_publ_notify() 279 static bool tipc_update_nametbl(struct net *net, struct distr_item *i, in tipc_update_nametbl() 364 void tipc_named_rcv(struct net *net, struct sk_buff_head *namedq, in tipc_named_rcv() 396 void tipc_named_reinit(struct net *net) in tipc_named_reinit()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 83 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() 120 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() 157 struct net *net; in ops_pre_exit_list() local 171 struct net *net; in ops_exit_rtnl_list() local 196 struct net *net; in ops_exit_list() local 211 struct net *net; in ops_free_list() local 270 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid() 288 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr() 296 static int __peernet2id(const struct net *net, struct net *peer) in __peernet2id() 314 int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp) in peernet2id_alloc() [all …]
|
| /linux/net/sctp/ |
| H A D | sm_statefuns.c | 233 enum sctp_disposition sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C() 318 enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init() 518 enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack() 637 static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, in sctp_auth_chunk_verify() 700 enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce() 922 enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca() 1041 enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3() 1089 enum sctp_disposition sctp_sf_send_reconf(struct net *net, in sctp_sf_send_reconf() 1118 enum sctp_disposition sctp_sf_send_probe(struct net *net, in sctp_sf_send_probe() 1166 enum sctp_disposition sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3() [all …]
|
| /linux/net/ipv4/ |
| H A D | ipmr.c | 121 #define ipmr_for_each_table(mrt, net) \ argument 126 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() 143 static struct mr_table *__ipmr_get_table(struct net *net, u32 id) in __ipmr_get_table() 154 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup() 242 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init() 275 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit() 280 static void __net_exit ipmr_rules_exit_rtnl(struct net *net, in ipmr_rules_exit_rtnl() 291 static int ipmr_rules_dump(struct net *net, struct notifier_block *nb, in ipmr_rules_dump() 297 static unsigned int ipmr_rules_seq_read(const struct net *net) in ipmr_rules_seq_read() 308 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() [all …]
|
| H A D | ip_fragment.c | 87 struct net *net = q->fqdir->net; in ip4_frag_init() local 129 struct net *net; in ip_expire() local 199 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find() 265 struct net *net = qp->q.fqdir->net; in ip_frag_queue() local 404 struct net *net = qp->q.fqdir->net; in ip_frag_reasm() local 473 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_defrag() 506 struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_check_defrag() 591 static int __net_init ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register() 625 static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net) in ip4_frags_ns_ctl_unregister() 639 static int ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register() [all …]
|
| H A D | sysctl_net_ipv4.c | 58 static void set_local_port_range(struct net *net, unsigned int low, unsigned int high) in set_local_port_range() 73 struct net *net = table->data; in ipv4_local_port_range() local 107 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports() local 142 struct net *net = in inet_get_ping_group_range_table() local 158 struct net *net = in set_ping_group_range() local 205 struct net *net; in ipv4_fwd_update_priority() local 221 struct net *net = container_of(ctl->data, struct net, in proc_tcp_congestion_control() local 294 struct net *net = container_of(table->data, struct net, in proc_tcp_fastopen_key() local 366 struct net *net = container_of(table->data, struct net, in proc_tfo_blackhole_detect_timeout() local 397 struct net *net = container_of(table->data, struct net, in proc_tcp_ehash_entries() local [all …]
|
| /linux/net/ipv6/ |
| H A D | ip6_fib.c | 44 struct net *net; member 75 #define FOR_WALKERS(net, w) \ argument 78 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() 85 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink() 92 static int fib6_new_sernum(struct net *net) in fib6_new_sernum() 107 void fib6_update_sernum(struct net *net, struct fib6_info *f6i) in fib6_update_sernum() 184 static struct fib6_node *node_alloc(struct net *net) in node_alloc() 195 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate() 201 static void node_free(struct net *net, struct fib6_node *fn) in node_free() 213 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table() [all …]
|
| H A D | ip6_input.c | 51 struct net *net = dev_net_rcu(skb->dev); in tcp_v6_early_demux() local 88 static void ip6_rcv_finish_core(struct net *net, struct sock *sk, in ip6_rcv_finish_core() 109 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() 139 static struct sk_buff *ip6_extract_route_hint(const struct net *net, in ip6_extract_route_hint() 149 static void ip6_list_rcv_finish(struct net *net, struct sock *sk, in ip6_list_rcv_finish() 189 struct net *net) in ip6_rcv_core() 346 struct net *net = dev_net(skb->dev); in ipv6_rcv() local 357 struct net *net) in ip6_sublist_rcv() 375 struct net *net = dev_net(dev); in ipv6_list_rcv() local 403 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu() [all …]
|
| H A D | xfrm6_tunnel.c | 35 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) in xfrm6_tunnel_pernet() 74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup() 89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() 102 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check() 117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() 163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() 187 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi() 224 struct net *net = dev_net(skb->dev); in xfrm6_tunnel_rcv() local 292 struct net *net = xs_net(x); in xfrm6_tunnel_destroy() local 318 static int __net_init xfrm6_tunnel_net_init(struct net *net) in xfrm6_tunnel_net_init() [all …]
|
| /linux/kernel/bpf/ |
| H A D | net_namespace.c | 20 struct net *net; member 55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() 65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() 79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() 89 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() 107 struct net *net; in bpf_netns_link_release() local 171 struct net *net; in bpf_netns_link_update_prog() local 209 struct net *net; in bpf_netns_link_fill_info() local 247 struct net *net, in __netns_bpf_prog_query() 274 struct net *net; in netns_bpf_prog_query() local [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_log.c | 45 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set() 63 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset() 154 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() 170 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf() 237 void nf_log_packet(struct net *net, in nf_log_packet() 266 void nf_log_trace(struct net *net, in nf_log_trace() 350 struct net *net = seq_file_net(seq); in seq_start() local 362 struct net *net = seq_file_net(s); in seq_next() local 382 struct net *net = seq_file_net(s); in seq_show() local 444 struct net *net = table->extra2; in nf_log_proc_dostring() local [all …]
|
| /linux/net/mctp/ |
| H A D | route.c | 43 static struct mctp_sock *mctp_lookup_bind_details(struct net *net, in mctp_lookup_bind_details() 81 static struct mctp_sock *mctp_lookup_bind(struct net *net, struct sk_buff *skb) in mctp_lookup_bind() 163 static bool mctp_key_match(struct mctp_sk_key *key, unsigned int net, in mctp_key_match() 184 static struct mctp_sk_key *mctp_lookup_key(struct net *net, struct sk_buff *skb, in mctp_lookup_key() 224 unsigned int net, in mctp_key_alloc() 267 struct net *net = sock_net(&msk->sk); in mctp_key_add() local 312 static void __mctp_key_done_in(struct mctp_sk_key *key, struct net *net, in __mctp_key_done_in() 437 struct net *net = dev_net(skb->dev); in mctp_dst_input() local 694 unsigned int mctp_default_net(struct net *net) in mctp_default_net() 699 int mctp_default_net_set(struct net *net, unsigned int index) in mctp_default_net_set() [all …]
|
| /linux/net/smc/ |
| H A D | smc_pnet.c | 101 static int smc_pnet_remove_by_pnetid(struct net *net, char *pnet_name) in smc_pnet_remove_by_pnetid() 189 struct net *net = dev_net(ndev); in smc_pnet_add_by_ndev() local 221 struct net *net = dev_net(ndev); in smc_pnet_remove_by_ndev() local 348 static int smc_pnet_add_eth(struct smc_pnettable *pnettable, struct net *net, in smc_pnet_add_eth() 477 static int smc_pnet_enter(struct net *net, struct nlattr *tb[]) in smc_pnet_enter() 562 struct net *net = genl_info_net(info); in smc_pnet_add() local 569 struct net *net = genl_info_net(info); in smc_pnet_del() local 601 static int _smc_pnet_dump(struct net *net, struct sk_buff *skb, u32 portid, in _smc_pnet_dump() 635 struct net *net = sock_net(skb->sk); in smc_pnet_dump() local 648 struct net *net = genl_info_net(info); in smc_pnet_get() local [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_ether.c | 62 struct net_device *net; member 110 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() 458 struct net_device *net) in eth_start_xmit() 617 static int eth_open(struct net_device *net) in eth_open() 635 static int eth_stop(struct net_device *net) in eth_stop() 747 struct net_device *net; in gether_setup_name() local 819 struct net_device *net; in gether_setup_name_default() local 860 int gether_register_netdev(struct net_device *net) in gether_register_netdev() 892 void gether_set_gadget(struct net_device *net, struct usb_gadget *g) in gether_set_gadget() 902 int gether_attach_gadget(struct net_device *net, struct usb_gadget *g) in gether_attach_gadget() [all …]
|
| /linux/fs/nfsd/ |
| H A D | nfssvc.c | 207 bool nfsd_net_try_get(struct net *net) __must_hold(rcu) in nfsd_net_try_get() 214 void nfsd_net_put(struct net *net) __must_hold(rcu) in nfsd_net_put() 240 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads() 349 static int nfsd_startup_net(struct net *net, const struct cred *cred) in nfsd_startup_net() 406 static void nfsd_shutdown_net(struct net *net) in nfsd_shutdown_net() 438 struct net *net = dev_net(dev); in nfsd_inetaddr_event() local 468 struct net *net = dev_net(dev); in nfsd_inet6addr_event() local 502 void nfsd_destroy_serv(struct net *net) in nfsd_destroy_serv() 571 void nfsd_shutdown_threads(struct net *net) in nfsd_shutdown_threads() 596 int nfsd_create_serv(struct net *net) in nfsd_create_serv() [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_policy.c | 121 possible_net_t net; member 298 struct net *net = xs_net(x); in xfrm_dst_lookup() local 428 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc() 479 struct net *net = xp_net(policy); in xfrm_policy_kill() local 509 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash() 515 static void __get_hash_thresh(struct net *net, in __get_hash_thresh() 536 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel() 555 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct() 572 static void xfrm_dst_hash_transfer(struct net *net, in xfrm_dst_hash_transfer() 629 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize() [all …]
|
| /linux/fs/nfs_common/ |
| H A D | grace.c | 30 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() 64 __state_in_grace(struct net *net, bool open) in __state_in_grace() 91 bool locks_in_grace(struct net *net) in locks_in_grace() 97 bool opens_in_grace(struct net *net) in opens_in_grace() 104 grace_init_net(struct net *net) in grace_init_net() 113 grace_exit_net(struct net *net) in grace_exit_net()
|
| /linux/fs/afs/ |
| H A D | fs_probe.c | 58 static void afs_schedule_fs_probe(struct afs_net *net, in afs_schedule_fs_probe() 77 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server, in afs_finished_fs_probe() 99 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server, in afs_done_one_fs_probe() 114 static void afs_fs_probe_not_done(struct afs_net *net, in afs_fs_probe_not_done() 238 int afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, in afs_fs_probe_fileserver() 378 struct afs_net *net = container_of(timer, struct afs_net, fs_probe_timer); in afs_fs_probe_timer() local 387 static void afs_dispatch_fs_probe(struct afs_net *net, struct afs_server *server) in afs_dispatch_fs_probe() 408 void afs_probe_fileserver(struct afs_net *net, struct afs_server *server) in afs_probe_fileserver() 421 struct afs_net *net = container_of(work, struct afs_net, fs_prober); in afs_fs_probe_dispatcher() local 535 void afs_fs_probe_cleanup(struct afs_net *net) in afs_fs_probe_cleanup()
|
| H A D | rxrpc.c | 48 int afs_open_socket(struct afs_net *net) in afs_open_socket() 126 void afs_close_socket(struct afs_net *net) in afs_close_socket() 156 static struct afs_call *afs_alloc_call(struct afs_net *net, in afs_alloc_call() 186 struct afs_net *net = call->net; in afs_free_call() local 219 struct afs_net *net = call->net; in afs_put_call() local 245 struct afs_net *net = call->net; in afs_deferred_put_call() local 273 struct afs_call *afs_alloc_flat_call(struct afs_net *net, in afs_alloc_flat_call() 741 struct afs_net *net = in afs_charge_preallocation() local 788 struct afs_net *net = afs_sock2net(sk); in afs_rx_new_call() local 851 struct afs_net *net = call->net; in afs_send_empty_reply() local [all …]
|
| /linux/net/can/ |
| H A D | proc.c | 79 static void can_init_stats(struct net *net) in can_init_stats() 117 struct net *net = timer_container_of(net, t, can.stattimer); in can_stat_update() local 218 struct net *net = m->private; in can_stats_proc_show() local 283 struct net *net = m->private; in can_reset_stats_proc_show() local 320 struct net *net = m->private; in can_rcvlist_proc_show() local 374 struct net *net = m->private; in can_rcvlist_sff_proc_show() local 407 struct net *net = m->private; in can_rcvlist_eff_proc_show() local 439 void can_init_proc(struct net *net) in can_init_proc() 477 void can_remove_proc(struct net *net) in can_remove_proc()
|