/Linux-v6.6/include/net/ |
D | net_namespace.h | 61 struct net { struct 65 refcount_t passive; /* To decide when the network argument 78 struct list_head list; /* list of network namespaces */ argument 79 struct list_head exit_list; /* To linked to call pernet exit argument 80 * methods on dead net ( argument 92 struct idr netns_ids; argument 97 * refcounted against netns argument 100 struct proc_dir_entry *proc_net; argument 101 struct proc_dir_entry *proc_net_stat; argument 107 struct sock *rtnl; /* rtnetlink socket */ argument [all …]
|
/Linux-v6.6/net/tipc/ |
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 …]
|
D | bearer.c | 62 static struct tipc_bearer *bearer_get(struct net *net, int bearer_id) in bearer_get() 177 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find() 196 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id) in tipc_bearer_get_name() 212 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest() 223 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest() 243 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer() 377 static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b) in tipc_reset_bearer() 403 static void bearer_disable(struct net *net, struct tipc_bearer *b) in bearer_disable() 420 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, in tipc_enable_l2_media() 492 int tipc_l2_send_msg(struct net *net, struct sk_buff *skb, in tipc_l2_send_msg() [all …]
|
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() 151 void tipc_net_stop(struct net *net) in tipc_net_stop() 164 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() 202 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local 228 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local 291 static int __tipc_nl_addr_legacy_get(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_addr_legacy_get() 325 struct net *net = sock_net(skb->sk); in tipc_nl_net_addr_legacy_get() local
|
/Linux-v6.6/net/sctp/ |
D | sm_statefuns.c | 231 enum sctp_disposition sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C() 316 enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init() 516 enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack() 635 static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, in sctp_auth_chunk_verify() 698 enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce() 919 enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca() 1038 enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3() 1086 enum sctp_disposition sctp_sf_send_reconf(struct net *net, in sctp_sf_send_reconf() 1115 enum sctp_disposition sctp_sf_send_probe(struct net *net, in sctp_sf_send_probe() 1163 enum sctp_disposition sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3() [all …]
|
/Linux-v6.6/net/core/ |
D | net_namespace.c | 82 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() 119 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() 156 struct net *net; in ops_pre_exit_list() local 167 struct net *net; in ops_exit_list() local 181 struct net *net; in ops_free_list() local 189 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid() 207 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr() 215 static int __peernet2id(const struct net *net, struct net *peer) in __peernet2id() 233 int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp) in peernet2id_alloc() 271 int peernet2id(const struct net *net, struct net *peer) in peernet2id() [all …]
|
D | fib_notifier.c | 29 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() 40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum() 60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() 83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() 99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() 121 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() 130 struct net *net) in __fib_notifier_ops_register() 143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() 171 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() 180 static void __net_exit fib_notifier_net_exit(struct net *net) in fib_notifier_net_exit()
|
/Linux-v6.6/net/mptcp/ |
D | ctrl.c | 38 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet() 43 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled() 48 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout() 53 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled() 58 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0() 63 unsigned int mptcp_stale_loss_cnt(const struct net *net) in mptcp_stale_loss_cnt() 68 int mptcp_get_pm_type(const struct net *net) in mptcp_get_pm_type() 73 const char *mptcp_get_scheduler(const struct net *net) in mptcp_get_scheduler() 147 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() 194 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() [all …]
|
/Linux-v6.6/net/ipv4/ |
D | fib_frontend.c | 52 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() 76 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() 112 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() 132 static void fib_replace_table(struct net *net, struct fib_table *old, in fib_replace_table() 152 int fib_unmerge(struct net *net) in fib_unmerge() 184 void fib_flush(struct net *net) in fib_flush() 206 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type() 237 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table() 243 unsigned int inet_addr_type(struct net *net, __be32 addr) in inet_addr_type() 249 unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, in inet_dev_addr_type() [all …]
|
D | ipmr.c | 117 #define ipmr_for_each_table(mrt, net) \ argument 122 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() 139 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table() 150 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup() 238 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init() 272 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit() 284 static int ipmr_rules_dump(struct net *net, struct notifier_block *nb, in ipmr_rules_dump() 290 static unsigned int ipmr_rules_seq_read(struct net *net) in ipmr_rules_seq_read() 301 #define ipmr_for_each_table(mrt, net) \ argument 304 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() [all …]
|
D | ip_input.c | 154 struct net *net = dev_net(dev); in ip_call_ra_chain() local 187 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu() 227 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish() 247 struct net *net = dev_net(skb->dev); in ip_local_deliver() local 317 static int ip_rcv_finish_core(struct net *net, struct sock *sk, in ip_rcv_finish_core() 435 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish() 456 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core() 563 struct net *net = dev_net(dev); in ip_rcv() local 584 static struct sk_buff *ip_extract_route_hint(const struct net *net, in ip_extract_route_hint() 594 static void ip_list_rcv_finish(struct net *net, struct sock *sk, in ip_list_rcv_finish() [all …]
|
/Linux-v6.6/net/ipv6/ |
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() 208 static void node_free(struct net *net, struct fib6_node *fn) in node_free() 220 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table() [all …]
|
D | ip6mr.c | 106 #define ip6mr_for_each_table(mrt, net) \ argument 111 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter() 128 static struct mr_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table() 139 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup() 227 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init() 261 static void __net_exit ip6mr_rules_exit(struct net *net) in ip6mr_rules_exit() 273 static int ip6mr_rules_dump(struct net *net, struct notifier_block *nb, in ip6mr_rules_dump() 279 static unsigned int ip6mr_rules_seq_read(struct net *net) in ip6mr_rules_seq_read() 291 #define ip6mr_for_each_table(mrt, net) \ argument 294 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter() [all …]
|
D | reassembly.c | 84 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) in fq_find() 110 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local 259 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() local 332 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv() local 455 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 488 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 512 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 517 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 531 static int __net_init ipv6_frags_init_net(struct net *net) in ipv6_frags_init_net() 549 static void __net_exit ipv6_frags_pre_exit_net(struct net *net) in ipv6_frags_pre_exit_net() [all …]
|
D | ip6_input.c | 48 static void ip6_rcv_finish_core(struct net *net, struct sock *sk, in ip6_rcv_finish_core() 69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() 99 static struct sk_buff *ip6_extract_route_hint(const struct net *net, in ip6_extract_route_hint() 109 static void ip6_list_rcv_finish(struct net *net, struct sock *sk, in ip6_list_rcv_finish() 150 struct net *net) in ip6_rcv_core() 305 struct net *net = dev_net(skb->dev); in ipv6_rcv() local 316 struct net *net) in ip6_sublist_rcv() 335 struct net *net = dev_net(dev); in ipv6_list_rcv() local 363 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu() 479 static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_input_finish()
|
/Linux-v6.6/kernel/bpf/ |
D | net_namespace.c | 22 struct net *net; member 56 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() 66 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() 80 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() 90 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() 108 struct net *net; in bpf_netns_link_release() local 172 struct net *net; in bpf_netns_link_update_prog() local 210 struct net *net; in bpf_netns_link_fill_info() local 248 struct net *net, in __netns_bpf_prog_query() 275 struct net *net; in netns_bpf_prog_query() local [all …]
|
/Linux-v6.6/net/netfilter/ |
D | nf_synproxy_core.c | 306 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() 314 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() 319 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() 324 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() 330 static int __net_init synproxy_net_init(struct net *net) in synproxy_net_init() 366 static void __net_exit synproxy_net_exit(struct net *net) in synproxy_net_exit() 396 synproxy_build_ip(struct net *net, struct sk_buff *skb, __be32 saddr, in synproxy_build_ip() 418 synproxy_send_tcp(struct net *net, in synproxy_send_tcp() 447 synproxy_send_client_synack(struct net *net, in synproxy_send_client_synack() 490 synproxy_send_server_syn(struct net *net, in synproxy_send_server_syn() [all …]
|
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() 128 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() 144 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf() 205 void nf_log_packet(struct net *net, in nf_log_packet() 234 void nf_log_trace(struct net *net, in nf_log_trace() 318 struct net *net = seq_file_net(seq); in seq_start() local 330 struct net *net = seq_file_net(s); in seq_next() local 350 struct net *net = seq_file_net(s); in seq_show() local 413 struct net *net = table->extra2; in nf_log_proc_dostring() local [all …]
|
/Linux-v6.6/fs/afs/ |
D | server.c | 24 struct afs_server *afs_find_server(struct afs_net *net, in afs_find_server() 89 struct afs_server *afs_find_server_by_uuid(struct afs_net *net, const uuid_t *uuid) in afs_find_server_by_uuid() 142 struct afs_net *net = cell->net; in afs_install_server() local 223 struct afs_net *net = cell->net; in afs_alloc_server() local 327 static void afs_set_server_timer(struct afs_net *net, time64_t delay) in afs_set_server_timer() 342 struct afs_net *net = container_of(timer, struct afs_net, fs_timer); in afs_servers_timer() local 399 void afs_put_server(struct afs_net *net, struct afs_server *server, in afs_put_server() 420 void afs_unuse_server_notime(struct afs_net *net, struct afs_server *server, in afs_unuse_server_notime() 435 void afs_unuse_server(struct afs_net *net, struct afs_server *server, in afs_unuse_server() 454 static void __afs_put_server(struct afs_net *net, struct afs_server *server) in __afs_put_server() [all …]
|
D | cell.c | 26 static void afs_dec_cells_outstanding(struct afs_net *net) in afs_dec_cells_outstanding() 36 static void afs_set_cell_timer(struct afs_net *net, time64_t delay) in afs_set_cell_timer() 51 static struct afs_cell *afs_find_cell_locked(struct afs_net *net, in afs_find_cell_locked() 98 struct afs_cell *afs_find_cell(struct afs_net *net, in afs_find_cell() 114 static struct afs_cell *afs_alloc_cell(struct afs_net *net, in afs_alloc_cell() 234 struct afs_cell *afs_lookup_cell(struct afs_net *net, in afs_lookup_cell() 343 int afs_cell_init(struct afs_net *net, const char *rootcell) in afs_cell_init() 492 struct afs_net *net = cell->net; in afs_cell_destroy() local 514 static void afs_queue_cell_manager(struct afs_net *net) in afs_queue_cell_manager() 530 struct afs_net *net = container_of(timer, struct afs_net, cells_timer); in afs_cells_timer() local [all …]
|
D | fs_probe.c | 22 static void afs_schedule_fs_probe(struct afs_net *net, in afs_schedule_fs_probe() 41 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() 61 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server) in afs_done_one_fs_probe() 75 static void afs_fs_probe_not_done(struct afs_net *net, in afs_fs_probe_not_done() 195 void afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, in afs_fs_probe_fileserver() 321 struct afs_net *net = container_of(timer, struct afs_net, fs_probe_timer); in afs_fs_probe_timer() local 330 static void afs_dispatch_fs_probe(struct afs_net *net, struct afs_server *server, bool all) in afs_dispatch_fs_probe() 351 void afs_probe_fileserver(struct afs_net *net, struct afs_server *server) in afs_probe_fileserver() 364 struct afs_net *net = container_of(work, struct afs_net, fs_prober); in afs_fs_probe_dispatcher() local 474 void afs_fs_probe_cleanup(struct afs_net *net) in afs_fs_probe_cleanup()
|
/Linux-v6.6/drivers/rapidio/ |
D | rio-scan.c | 56 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc() 82 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() 101 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free() 115 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first() 135 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next() 191 static int rio_clear_locks(struct rio_net *net) in rio_clear_locks() 322 static struct rio_dev *rio_setup_device(struct rio_net *net, in rio_setup_device() 526 static int rio_enum_peer(struct rio_net *net, struct rio_mport *port, in rio_enum_peer() 730 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer() 812 static void rio_scan_release_net(struct rio_net *net) in rio_scan_release_net() [all …]
|
/Linux-v6.6/net/bridge/ |
D | br_netfilter_hooks.c | 85 static inline bool is_vlan_ip(const struct sk_buff *skb, const struct net *net) in is_vlan_ip() 93 const struct net *net) in is_vlan_ipv6() 101 static inline bool is_vlan_arp(const struct sk_buff *skb, const struct net *net) in is_vlan_arp() 114 static inline bool is_pppoe_ip(const struct sk_buff *skb, const struct net *net) in is_pppoe_ip() 123 const struct net *net) in is_pppoe_ipv6() 196 static int br_validate_ipv4(struct net *net, struct sk_buff *skb) in br_validate_ipv4() 266 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish_bridge() 353 static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish() 432 const struct net *net) in brnf_get_logical_dev() 449 struct net_device *setup_pre_routing(struct sk_buff *skb, const struct net *net) in setup_pre_routing() [all …]
|
/Linux-v6.6/net/smc/ |
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 345 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-v6.6/fs/nfs_common/ |
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()
|