Home
last modified time | relevance | path

Searched defs:ns (Results 1 – 25 of 795) sorted by relevance

12345678910>>...32

/kernel/linux/linux-4.19/ipc/
Dnamespace.c22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces()
35 struct ipc_namespace *ns; in create_ipc_ns() local
80 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
95 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs()
118 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns()
146 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns()
156 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
163 struct ipc_namespace *ns = NULL; in ipcns_get() local
175 static void ipcns_put(struct ns_common *ns) in ipcns_put()
182 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local
[all …]
/kernel/linux/linux-5.10/ipc/
Dnamespace.c22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces()
35 struct ipc_namespace *ns; in create_ipc_ns() local
80 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
95 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs()
118 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns()
165 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns()
176 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
183 struct ipc_namespace *ns = NULL; in ipcns_get() local
195 static void ipcns_put(struct ns_common *ns) in ipcns_put()
203 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local
[all …]
/kernel/linux/linux-5.10/kernel/time/
Dnamespace.c59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces()
81 struct time_namespace *ns; in clone_time_ns() local
180 struct time_namespace *ns) in timens_setup_vdso_data()
202 struct time_namespace *ns) in timens_set_vvar_page()
231 struct time_namespace *ns; in free_time_ns() local
241 static struct time_namespace *to_time_ns(struct ns_common *ns) in to_time_ns()
248 struct time_namespace *ns = NULL; in timens_get() local
264 struct time_namespace *ns = NULL; in timens_for_children_get() local
278 static void timens_put(struct ns_common *ns) in timens_put()
283 void timens_commit(struct task_struct *tsk, struct time_namespace *ns) in timens_commit()
[all …]
/kernel/linux/linux-4.19/drivers/net/netdevsim/
Dnetdev.c49 struct netdevsim *ns = to_nsim(dev); in nsim_num_vf() local
60 static int nsim_vfs_enable(struct netdevsim *ns, unsigned int num_vfs) in nsim_vfs_enable()
71 static void nsim_vfs_disable(struct netdevsim *ns) in nsim_vfs_disable()
82 struct netdevsim *ns = to_nsim(dev); in nsim_numvfs_store() local
116 struct netdevsim *ns = to_nsim(dev); in nsim_numvfs_show() local
140 struct netdevsim *ns = to_nsim(dev); in nsim_dev_release() local
154 struct netdevsim *ns = netdev_priv(dev); in nsim_port_attr_get() local
174 struct netdevsim *ns = netdev_priv(dev); in nsim_init() local
244 struct netdevsim *ns = netdev_priv(dev); in nsim_uninit() local
258 struct netdevsim *ns = netdev_priv(dev); in nsim_free() local
[all …]
Dbpf.c30 struct netdevsim *ns; member
41 struct netdevsim *ns; member
93 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active()
110 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload()
129 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb() local
179 int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc()
186 static int nsim_xdp_offload_prog(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_xdp_offload_prog()
199 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf, in nsim_xdp_set_prog()
227 static int nsim_bpf_create_prog(struct netdevsim *ns, struct bpf_prog *prog) in nsim_bpf_create_prog()
272 static int nsim_setup_prog_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_checks()
[all …]
Dipsec.c16 struct netdevsim *ns = filp->private_data; in nsim_dbg_netdev_ops_read() local
132 struct netdevsim *ns; in nsim_ipsec_add_sa() local
197 struct netdevsim *ns = netdev_priv(xs->xso.dev); in nsim_ipsec_del_sa() local
214 struct netdevsim *ns = netdev_priv(xs->xso.dev); in nsim_ipsec_offload_ok() local
228 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) in nsim_ipsec_tx()
274 void nsim_ipsec_init(struct netdevsim *ns) in nsim_ipsec_init()
289 void nsim_ipsec_teardown(struct netdevsim *ns) in nsim_ipsec_teardown()
/kernel/linux/linux-4.19/security/apparmor/
Dpolicy_ns.c93 struct aa_ns *ns; in alloc_ns() local
141 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
168 struct aa_ns *ns = NULL; in aa_findn_ns() local
206 struct aa_ns *ns = view; in __aa_lookupn_ns() local
237 struct aa_ns *ns = NULL; in aa_lookupn_ns() local
249 struct aa_ns *ns; in __aa_create_ns() local
289 struct aa_ns *ns; in __aa_find_or_create_ns() local
314 struct aa_ns *ns; in aa_prepare_ns() local
334 static void destroy_ns(struct aa_ns *ns) in destroy_ns()
364 void __aa_remove_ns(struct aa_ns *ns) in __aa_remove_ns()
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dpolicy_ns.c89 struct aa_ns *ns; in alloc_ns() local
137 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
164 struct aa_ns *ns = NULL; in aa_findn_ns() local
202 struct aa_ns *ns = view; in __aa_lookupn_ns() local
233 struct aa_ns *ns = NULL; in aa_lookupn_ns() local
245 struct aa_ns *ns; in __aa_create_ns() local
285 struct aa_ns *ns; in __aa_find_or_create_ns() local
310 struct aa_ns *ns; in aa_prepare_ns() local
330 static void destroy_ns(struct aa_ns *ns) in destroy_ns()
360 void __aa_remove_ns(struct aa_ns *ns) in __aa_remove_ns()
[all …]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dnetdev.c31 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local
53 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local
66 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() local
84 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local
98 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() local
113 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() local
127 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() local
139 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() local
151 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() local
164 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config() local
[all …]
/kernel/linux/linux-4.19/kernel/
Dpid_namespace.c63 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work() local
67 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
80 struct pid_namespace *ns; in create_pid_namespace() local
133 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() local
141 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
161 struct pid_namespace *ns; in free_pid_ns() local
167 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
337 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
344 struct pid_namespace *ns; in pidns_get() local
357 struct pid_namespace *ns = NULL; in pidns_for_children_get() local
[all …]
Dutsname.c24 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
52 struct uts_namespace *ns; in clone_uts_ns() local
112 struct uts_namespace *ns; in free_uts_ns() local
121 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
128 struct uts_namespace *ns = NULL; in utsns_get() local
142 static void utsns_put(struct ns_common *ns) in utsns_put()
149 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local
161 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Duser_namespace.c37 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
76 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local
180 struct user_namespace *parent, *ns = in free_user_ns() local
209 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
392 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
460 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
527 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
585 struct user_namespace *ns = seq->private; in uid_m_show() local
606 struct user_namespace *ns = seq->private; in gid_m_show() local
627 struct user_namespace *ns = seq->private; in projid_m_show() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_cmd.c42 static int mlx5_cmd_stub_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_update_root_ft()
50 static int mlx5_cmd_stub_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_flow_table()
58 static int mlx5_cmd_stub_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_destroy_flow_table()
64 static int mlx5_cmd_stub_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_modify_flow_table()
71 static int mlx5_cmd_stub_create_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_flow_group()
79 static int mlx5_cmd_stub_destroy_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_destroy_flow_group()
86 static int mlx5_cmd_stub_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_fte()
94 static int mlx5_cmd_stub_update_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_update_fte()
103 static int mlx5_cmd_stub_delete_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_delete_fte()
110 static int mlx5_cmd_stub_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_packet_reformat_alloc()
[all …]
/kernel/linux/linux-5.10/kernel/
Dpid_namespace.c61 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
74 struct pid_namespace *ns; in create_pid_namespace() local
126 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() local
134 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
154 struct pid_namespace *ns; in free_pid_ns() local
160 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
336 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
343 struct pid_namespace *ns; in pidns_get() local
356 struct pid_namespace *ns = NULL; in pidns_for_children_get() local
377 static void pidns_put(struct ns_common *ns) in pidns_put()
[all …]
Dutsname.c20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
48 struct uts_namespace *ns; in clone_uts_ns() local
108 struct uts_namespace *ns; in free_uts_ns() local
117 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
124 struct uts_namespace *ns = NULL; in utsns_get() local
138 static void utsns_put(struct ns_common *ns) in utsns_put()
146 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local
158 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Duser_namespace.c32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
71 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local
177 struct user_namespace *parent, *ns = in free_user_ns() local
204 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
387 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
455 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
522 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
580 struct user_namespace *ns = seq->private; in uid_m_show() local
601 struct user_namespace *ns = seq->private; in gid_m_show() local
622 struct user_namespace *ns = seq->private; in projid_m_show() local
[all …]
Dcapability.c295 struct user_namespace *ns, int cap) in has_ns_capability()
336 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
364 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common()
394 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
412 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
431 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
466 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
487 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode) in privileged_wrt_inode_uidgid()
504 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local
518 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c18 static int mlx5_cmd_dr_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_update_root_ft()
27 static int set_miss_action(struct mlx5_flow_root_namespace *ns, in set_miss_action()
63 static int mlx5_cmd_dr_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_table()
103 static int mlx5_cmd_dr_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_table()
130 static int mlx5_cmd_dr_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_modify_flow_table()
137 static int mlx5_cmd_dr_create_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_group()
171 static int mlx5_cmd_dr_destroy_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_group()
221 static int mlx5_cmd_dr_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_fte()
522 static int mlx5_cmd_dr_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_alloc()
565 static void mlx5_cmd_dr_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_dealloc()
[all …]
/kernel/linux/linux-4.19/kernel/cgroup/
Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces()
40 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns()
93 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
98 static int cgroupns_install(struct nsproxy *nsproxy, struct ns_common *ns) in cgroupns_install()
119 struct cgroup_namespace *ns = NULL; in cgroupns_get() local
133 static void cgroupns_put(struct ns_common *ns) in cgroupns_put()
138 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/kernel/linux/linux-5.10/kernel/cgroup/
Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces()
40 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns()
93 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
98 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install()
120 struct cgroup_namespace *ns = NULL; in cgroupns_get() local
134 static void cgroupns_put(struct ns_common *ns) in cgroupns_put()
139 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dmultipath.c53 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name()
70 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local
96 struct nvme_ns *ns; in nvme_kick_requeue_lists() local
115 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
136 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local
147 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled()
166 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path() local
203 struct nvme_ns *ns) in nvme_next_ns()
215 struct nvme_ns *ns, *found = NULL; in nvme_round_robin_path() local
255 static inline bool nvme_path_is_optimized(struct nvme_ns *ns) in nvme_path_is_optimized()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dexport.h81 #define ___EXPORT_SYMBOL(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument
97 #define ___EXPORT_SYMBOL(sym, sec, ns) \ argument
119 #define __EXPORT_SYMBOL(sym, sec, ns) argument
135 #define __EXPORT_SYMBOL(sym, sec, ns) \ argument
138 #define __cond_export_sym(sym, sec, ns, conf) \ argument
140 #define ___cond_export_sym(sym, sec, ns, enabled) \ argument
142 #define __cond_export_sym_1(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) argument
143 #define __cond_export_sym_0(sym, sec, ns) /* nothing */ argument
147 #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) argument
161 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", #ns) argument
[all …]
Dtime_namespace.h24 struct ns_common ns; member
38 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns()
51 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
85 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local
95 struct time_namespace *ns) in vdso_join_timens()
101 struct time_namespace *ns) in timens_commit()
105 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns()
110 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
/kernel/linux/linux-4.19/drivers/nvme/host/
Dmultipath.c61 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name()
78 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local
124 struct nvme_ns *ns; in nvme_kick_requeue_lists() local
145 struct nvme_ns *ns, *fallback = NULL; in __nvme_find_path() local
168 static inline bool nvme_path_is_optimized(struct nvme_ns *ns) in nvme_path_is_optimized()
176 struct nvme_ns *ns = srcu_dereference(head->current_path, &head->srcu); in nvme_find_path() local
188 struct nvme_ns *ns; in nvme_ns_head_make_request() local
221 struct nvme_ns *ns; in nvme_ns_head_poll() local
307 static void nvme_mpath_set_live(struct nvme_ns *ns) in nvme_mpath_set_live()
374 struct nvme_ns *ns) in nvme_update_ns_ana_state()
[all …]
/kernel/linux/linux-5.10/fs/
Dnsfs.c39 struct ns_common *ns = inode->i_private; in ns_prune_dentry() local
53 struct ns_common *ns = inode->i_private; in nsfs_evict() local
58 static int __ns_get_path(struct path *path, struct ns_common *ns) in __ns_get_path()
115 struct ns_common *ns = ns_get_cb(private_data); in ns_get_path_cb() local
147 int open_related_ns(struct ns_common *ns, in open_related_ns()
148 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns()
192 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl() local
220 struct ns_common *ns; in ns_get_name() local
263 bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino) in ns_match()

12345678910>>...32