Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 258) sorted by relevance

1234567891011

/linux-4.19.296/include/net/
Dnet_namespace.h51 struct net { struct
169 extern struct net init_net; argument
172 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
173 struct net *old_net);
175 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
183 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
184 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
191 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
209 struct net *get_net_ns_by_pid(pid_t pid);
210 struct net *get_net_ns_by_fd(int fd);
[all …]
Dip_fib.h109 struct net *fib_net;
176 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
178 #define FIB_RES_SADDR(net, res) \ argument
180 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
182 fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
187 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
188 FIB_RES_SADDR(net, res))
205 int call_fib4_notifier(struct notifier_block *nb, struct net *net,
208 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
211 int __net_init fib4_notifier_init(struct net *net);
[all …]
Dip6_route.h76 struct dst_entry *ip6_route_input_lookup(struct net *net,
81 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
84 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument
88 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output()
91 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
93 struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
101 int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg);
105 int ip6_ins_rt(struct net *net, struct fib6_info *f6i);
106 int ip6_del_rt(struct net *net, struct fib6_info *f6i);
112 static inline int ip6_route_get_saddr(struct net *net, struct fib6_info *f6i, in ip6_route_get_saddr() argument
[all …]
Dwext.h7 struct net;
10 int wext_handle_ioctl(struct net *net, unsigned int cmd,
12 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
18 static inline int wext_handle_ioctl(struct net *net, unsigned int cmd, in wext_handle_ioctl() argument
23 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
31 int wext_proc_init(struct net *net);
32 void wext_proc_exit(struct net *net);
34 static inline int wext_proc_init(struct net *net) in wext_proc_init() argument
38 static inline void wext_proc_exit(struct net *net) in wext_proc_exit() argument
Droute.h113 void rt_cache_flush(struct net *net);
115 struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *flp,
117 struct rtable *ip_route_output_key_hash_rcu(struct net *net, struct flowi4 *flp,
121 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key() argument
124 return ip_route_output_key_hash(net, flp, NULL); in __ip_route_output_key()
127 struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
129 struct dst_entry *ipv4_blackhole_route(struct net *net,
132 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() argument
134 return ip_route_output_flow(net, flp, NULL); in ip_route_output_key()
137 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() argument
[all …]
Dip.h162 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
163 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
164 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
165 int (*output)(struct net *, struct sock *, struct sk_buff *));
167 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
168 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
187 int ip_send_skb(struct net *net, struct sk_buff *skb);
248 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
249 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
250 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
[all …]
Dip6_fib.h369 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
383 struct fib6_table *fib6_get_table(struct net *net, u32 id);
384 struct fib6_table *fib6_new_table(struct net *net, u32 id);
385 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
392 struct fib6_info *fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
396 struct fib6_info *fib6_table_lookup(struct net *net, struct fib6_table *table,
399 struct fib6_info *fib6_multipath_select(const struct net *net,
413 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
434 void fib6_run_gc(unsigned long expires, struct net *net, bool force);
450 int call_fib6_notifier(struct notifier_block *nb, struct net *net,
[all …]
Dl3mdev.h44 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
47 void l3mdev_update_flow(struct net *net, struct flowi *fl);
61 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
69 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
105 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
117 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
127 dev = dev_get_by_index_rcu(net, ifindex); in netif_index_is_l3_master()
136 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6);
206 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
225 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument
[all …]
/linux-4.19.296/include/net/netfilter/
Dnf_conntrack_ecache.h45 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
48 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add()
78 int nf_conntrack_register_notifier(struct net *net,
80 void nf_conntrack_unregister_notifier(struct net *net,
90 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
93 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache()
107 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local
109 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_report()
118 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local
120 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event()
[all …]
Dnf_conntrack_timestamp.h30 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local
32 if (!net->ct.sysctl_tstamp) in nf_ct_tstamp_ext_add()
41 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled() argument
43 return net->ct.sysctl_tstamp != 0; in nf_ct_tstamp_enabled()
46 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp() argument
48 net->ct.sysctl_tstamp = enable; in nf_ct_set_tstamp()
52 int nf_conntrack_tstamp_pernet_init(struct net *net);
53 void nf_conntrack_tstamp_pernet_fini(struct net *net);
58 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init() argument
63 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini() argument
Dnf_conntrack_l4proto.h36 struct net *net, struct nf_conntrack_tuple *tuple);
58 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb,
82 struct net *net, void *data);
95 int (*init_net)(struct net *net, u_int16_t proto);
98 struct nf_proto_net *(*get_net_proto)(struct net *net);
117 int nf_ct_l4proto_pernet_register_one(struct net *net,
119 void nf_ct_l4proto_pernet_unregister_one(struct net *net,
121 int nf_ct_l4proto_pernet_register(struct net *net,
124 void nf_ct_l4proto_pernet_unregister(struct net *net,
147 struct net *net,
[all …]
Dnf_conntrack_acct.h35 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local
38 if (!net->ct.sysctl_acct) in nf_ct_acct_ext_add()
53 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() argument
55 return net->ct.sysctl_acct != 0; in nf_ct_acct_enabled()
59 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct() argument
61 net->ct.sysctl_acct = enable; in nf_ct_set_acct()
64 int nf_conntrack_acct_pernet_init(struct net *net);
65 void nf_conntrack_acct_pernet_fini(struct net *net);
/linux-4.19.296/fs/afs/
Dmain.c71 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init()
74 struct afs_net *net = afs_net(net_ns); in afs_net_init() local
77 net->net = net_ns; in afs_net_init()
78 net->live = true; in afs_net_init()
79 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init()
81 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init()
82 mutex_init(&net->socket_mutex); in afs_net_init()
84 net->cells = RB_ROOT; in afs_net_init()
85 seqlock_init(&net->cells_lock); in afs_net_init()
86 INIT_WORK(&net->cells_manager, afs_manage_cells); in afs_net_init()
[all …]
Dcell.c26 static void afs_dec_cells_outstanding(struct afs_net *net) in afs_dec_cells_outstanding() argument
28 if (atomic_dec_and_test(&net->cells_outstanding)) in afs_dec_cells_outstanding()
29 wake_up_var(&net->cells_outstanding); in afs_dec_cells_outstanding()
36 static void afs_set_cell_timer(struct afs_net *net, time64_t delay) in afs_set_cell_timer() argument
38 if (net->live) { in afs_set_cell_timer()
39 atomic_inc(&net->cells_outstanding); in afs_set_cell_timer()
40 if (timer_reduce(&net->cells_timer, jiffies + delay * HZ)) in afs_set_cell_timer()
41 afs_dec_cells_outstanding(net); in afs_set_cell_timer()
49 struct afs_cell *afs_lookup_cell_rcu(struct afs_net *net, in afs_lookup_cell_rcu() argument
69 afs_put_cell(net, cell); in afs_lookup_cell_rcu()
[all …]
Dserver.c20 static void afs_inc_servers_outstanding(struct afs_net *net) in afs_inc_servers_outstanding() argument
22 atomic_inc(&net->servers_outstanding); in afs_inc_servers_outstanding()
25 static void afs_dec_servers_outstanding(struct afs_net *net) in afs_dec_servers_outstanding() argument
27 if (atomic_dec_and_test(&net->servers_outstanding)) in afs_dec_servers_outstanding()
28 wake_up_var(&net->servers_outstanding); in afs_dec_servers_outstanding()
34 struct afs_server *afs_find_server(struct afs_net *net, in afs_find_server() argument
46 afs_put_server(net, server); in afs_find_server()
48 read_seqbegin_or_lock(&net->fs_addr_lock, &seq); in afs_find_server()
52 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server()
68 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server()
[all …]
Dproc.c80 struct afs_net *net = afs_seq2net(m); in afs_proc_cells_write() local
114 cell = afs_lookup_cell(net, name, strlen(name), args, true); in afs_proc_cells_write()
121 afs_put_cell(net, cell); in afs_proc_cells_write()
144 struct afs_net *net; in afs_proc_rootcell_show() local
146 net = afs_seq2net_single(m); in afs_proc_rootcell_show()
147 if (rcu_access_pointer(net->ws_cell)) { in afs_proc_rootcell_show()
149 cell = rcu_dereference(net->ws_cell); in afs_proc_rootcell_show()
166 struct afs_net *net = afs_seq2net_single(m); in afs_proc_rootcell_write() local
184 ret = afs_cell_init(net, buf); in afs_proc_rootcell_write()
379 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_show() local
[all …]
/linux-4.19.296/fs/proc/
Dproc_net.c31 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET()
36 static struct net *get_proc_net(const struct inode *inode) in get_proc_net()
45 struct net *net; in seq_open_net() local
52 net = get_proc_net(inode); in seq_open_net()
53 if (!net) in seq_open_net()
58 put_net(net); in seq_open_net()
62 p->net = net; in seq_open_net()
149 struct net *net; in single_open_net() local
152 net = get_proc_net(inode); in single_open_net()
153 if (!net) in single_open_net()
[all …]
/linux-4.19.296/include/linux/sunrpc/
Dstats.h42 struct net;
44 int rpc_proc_init(struct net *);
45 void rpc_proc_exit(struct net *);
47 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() argument
52 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() argument
62 struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
63 void rpc_proc_unregister(struct net *,const char *);
65 struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *,
67 void svc_proc_unregister(struct net *, const char *);
73 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register() argument
[all …]
/linux-4.19.296/fs/nfs_common/
Dgrace.c28 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument
30 struct list_head *grace_list = net_generic(net, grace_net_id); in locks_start_grace()
37 net->ns.inum, (net == &init_net) ? "(init_net)" : ""); in locks_start_grace()
63 __state_in_grace(struct net *net, bool open) in __state_in_grace() argument
65 struct list_head *grace_list = net_generic(net, grace_net_id); in __state_in_grace()
89 bool locks_in_grace(struct net *net) in locks_in_grace() argument
91 return __state_in_grace(net, false); in locks_in_grace()
95 bool opens_in_grace(struct net *net) in opens_in_grace() argument
97 return __state_in_grace(net, true); in opens_in_grace()
102 grace_init_net(struct net *net) in grace_init_net() argument
[all …]
/linux-4.19.296/include/linux/
Dmroute_base.h49 struct net *net, in mr_call_vif_notifier() argument
58 .net = net, in mr_call_vif_notifier()
66 return call_fib_notifier(nb, net, event_type, &info.info); in mr_call_vif_notifier()
69 static inline int mr_call_vif_notifiers(struct net *net, in mr_call_vif_notifiers() argument
79 .net = net, in mr_call_vif_notifiers()
89 return call_fib_notifiers(net, event_type, &info.info); in mr_call_vif_notifiers()
175 struct net *net, in mr_call_mfc_notifier() argument
183 .net = net, in mr_call_mfc_notifier()
189 return call_fib_notifier(nb, net, event_type, &info.info); in mr_call_mfc_notifier()
192 static inline int mr_call_mfc_notifiers(struct net *net, in mr_call_mfc_notifiers() argument
[all …]
Dnetfilter.h57 struct net *net; member
58 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
128 struct net *net, in nf_hook_state_init() argument
129 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
136 p->net = net; in nf_hook_state_init()
167 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
168 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
169 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
171 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
193 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
[all …]
/linux-4.19.296/include/linux/netfilter/
Dnfnetlink.h11 int (*call)(struct net *net, struct sock *nl, struct sk_buff *skb,
15 int (*call_rcu)(struct net *net, struct sock *nl, struct sk_buff *skb,
19 int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb,
33 int (*commit)(struct net *net, struct sk_buff *skb);
34 int (*abort)(struct net *net, struct sk_buff *skb);
35 bool (*valid_genid)(struct net *net, u32 genid);
41 int nfnetlink_has_listeners(struct net *net, unsigned int group);
42 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
44 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
45 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid);
/linux-4.19.296/fs/lockd/
Dhost.c51 static void nlm_gc_hosts(struct net *net);
62 struct net *net; /* network namespace to bind */ member
120 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
164 host->net = ni->net; in nlm_alloc_host()
179 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nlm_destroy_host_locked()
217 struct net *net) in nlmclnt_lookup_host() argument
228 .net = net, in nlmclnt_lookup_host()
233 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmclnt_lookup_host()
243 if (host->net != net) in nlmclnt_lookup_host()
330 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host() local
[all …]
Dsvc.c107 static void set_grace_period(struct net *net) in set_grace_period() argument
110 struct lockd_net *ln = net_generic(net, lockd_net_id); in set_grace_period()
112 locks_start_grace(net, &ln->lockd_manager); in set_grace_period()
120 struct net *net = &init_net; in restart_grace() local
121 struct lockd_net *ln = net_generic(net, lockd_net_id); in restart_grace()
126 set_grace_period(net); in restart_grace()
138 struct net *net = &init_net; in lockd() local
139 struct lockd_net *ln = net_generic(net, lockd_net_id); in lockd()
190 struct net *net, const int family, in create_lockd_listener() argument
195 xprt = svc_find_xprt(serv, name, net, family, 0); in create_lockd_listener()
[all …]
/linux-4.19.296/fs/nfsd/
Dnfssvc.c196 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads() argument
199 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_nrthreads()
208 static int nfsd_init_socks(struct net *net) in nfsd_init_socks() argument
211 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_init_socks()
216 error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
221 error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
277 static int nfsd_startup_net(int nrservs, struct net *net) in nfsd_startup_net() argument
279 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_startup_net()
288 ret = nfsd_init_socks(net); in nfsd_startup_net()
293 ret = lockd_up(net); in nfsd_startup_net()
[all …]

1234567891011