Home
last modified time | relevance | path

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

12345678910>>...15

/linux/drivers/net/netdevsim/
H A Dethtool.c14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() local
25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local
35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() local
50 struct netdevsim *ns = netdev_priv(dev); in nsim_get_coalesce() local
61 struct netdevsim *ns = netdev_priv(dev); in nsim_set_coalesce() local
72 struct netdevsim *ns = netdev_priv(dev); in nsim_get_ringparam() local
86 struct netdevsim *ns = netdev_priv(dev); in nsim_set_ringparam() local
98 struct netdevsim *ns = netdev_priv(dev); in nsim_get_channels() local
107 struct netdevsim *ns = netdev_priv(dev); in nsim_wake_queues() local
123 struct netdevsim *ns = netdev_priv(dev); in nsim_set_channels() local
[all …]
H A Dpsp.c18 nsim_do_psp(struct sk_buff *skb, struct netdevsim *ns, in nsim_do_psp()
135 struct netdevsim *ns = psd->drv_priv; in nsim_rx_spi_alloc() local
155 struct netdevsim *ns = psd->drv_priv; in nsim_assoc_add() local
167 struct netdevsim *ns = psd->drv_priv; in nsim_key_rotate() local
182 struct netdevsim *ns = psd->drv_priv; in nsim_assoc_del() local
191 struct netdevsim *ns = psd->drv_priv; in nsim_get_stats() local
221 static void __nsim_psp_uninit(struct netdevsim *ns, bool teardown) in __nsim_psp_uninit()
236 void nsim_psp_uninit(struct netdevsim *ns) in nsim_psp_uninit()
247 struct netdevsim *ns = file->private_data; in nsim_psp_rereg_write() local
274 int nsim_psp_init(struct netdevsim *ns) in nsim_psp_init()
H A Dudp_tunnels.c15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local
41 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() local
68 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_sync_table() local
108 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_reset_write() local
128 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_create() local
191 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_destroy() local
/linux/ipc/
H A Dnamespace.c29 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces()
42 struct ipc_namespace *ns; in create_ipc_ns() local
112 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
127 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs()
150 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns()
202 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns()
216 struct ipc_namespace *ns = NULL; in ipcns_get() local
228 static void ipcns_put(struct ns_common *ns) in ipcns_put()
236 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local
246 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dfs_dr.c12 static int mlx5_cmd_dr_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_update_root_ft()
21 static int set_miss_action(struct mlx5_flow_root_namespace *ns, in set_miss_action()
56 static int mlx5_cmd_dr_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_table()
99 static int mlx5_cmd_dr_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_table()
126 static int mlx5_cmd_dr_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_modify_flow_table()
136 static int mlx5_cmd_dr_create_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_group()
170 static int mlx5_cmd_dr_destroy_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_group()
252 static int mlx5_cmd_dr_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_fte()
632 static int mlx5_cmd_dr_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_alloc()
682 static void mlx5_cmd_dr_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_dealloc()
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c107 struct aa_ns *ns; in alloc_ns() local
148 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
176 struct aa_ns *ns = view; in __aa_lookupn_ns() local
207 struct aa_ns *ns = NULL; in aa_lookupn_ns() local
219 struct aa_ns *ns; in __aa_create_ns() local
261 struct aa_ns *ns; in __aa_find_or_create_ns() local
286 struct aa_ns *ns; in aa_prepare_ns() local
306 static void destroy_ns(struct aa_ns *ns) in destroy_ns()
336 void __aa_remove_ns(struct aa_ns *ns) in __aa_remove_ns()
352 struct aa_ns *ns, *tmp; in __ns_list_release() local
[all …]
/linux/include/linux/
H A Dns_common.h16 static __always_inline bool is_ns_init_inum(const struct ns_common *ns) in is_ns_init_inum()
23 static __always_inline bool is_ns_init_id(const struct ns_common *ns) in is_ns_init_id()
60 static __always_inline __must_check int __ns_ref_active_read(const struct ns_common *ns) in __ns_ref_active_read()
65 static __always_inline __must_check int __ns_ref_read(const struct ns_common *ns) in __ns_ref_read()
70 static __always_inline __must_check bool __ns_ref_put(struct ns_common *ns) in __ns_ref_put()
84 static __always_inline __must_check bool __ns_ref_get(struct ns_common *ns) in __ns_ref_get()
97 static __always_inline void __ns_ref_inc(struct ns_common *ns) in __ns_ref_inc()
107 static __always_inline __must_check bool __ns_ref_dec_and_lock(struct ns_common *ns, in __ns_ref_dec_and_lock()
136 static __always_inline struct ns_common *__must_check ns_get_unless_inactive(struct ns_common *ns) in ns_get_unless_inactive()
H A Dcgroup_namespace.h8 struct ns_common ns; member
18 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
32 static inline void get_cgroup_ns(struct cgroup_namespace *ns) in get_cgroup_ns()
37 static inline void put_cgroup_ns(struct cgroup_namespace *ns) in put_cgroup_ns()
45 static inline void free_cgroup_ns(struct cgroup_namespace *ns) { } in free_cgroup_ns()
53 static inline void get_cgroup_ns(struct cgroup_namespace *ns) { } in get_cgroup_ns()
54 static inline void put_cgroup_ns(struct cgroup_namespace *ns) { } in put_cgroup_ns()
H A Dipc_namespace.h80 struct ns_common ns; member
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned()
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns()
132 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
140 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns()
147 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero()
160 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
168 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns()
173 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero()
178 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns()
[all …]
H A Duts_namespace.h15 struct ns_common ns; member
21 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
26 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns()
35 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns()
43 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns()
47 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns()
H A Dexport.h33 #define ___EXPORT_SYMBOL(sym, license, ns...) \ argument
48 #define __EXPORT_SYMBOL(sym, license, ns) argument
52 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument
56 #define __EXPORT_SYMBOL(sym, license, ns) \ argument
75 #define __EXPORT_SYMBOL(sym, license, ns) \ argument
91 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", ns) argument
92 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", ns) argument
H A Duser_namespace.h163 return READ_ONCE(ns argument
84 struct ns_common ns; global() member
121 struct user_namespace *ns; global() member
158 get_userns_rlimit_max(struct user_namespace * ns,enum rlimit_type type) get_userns_rlimit_max() argument
169 to_user_ns(struct ns_common * ns) to_user_ns() argument
176 get_user_ns(struct user_namespace * ns) get_user_ns() argument
187 put_user_ns(struct user_namespace * ns) put_user_ns() argument
209 get_user_ns(struct user_namespace * ns) get_user_ns() argument
227 put_user_ns(struct user_namespace * ns) put_user_ns() argument
231 userns_may_setgroups(const struct user_namespace * ns) userns_may_setgroups() argument
247 ns_get_owner(struct ns_common * ns) ns_get_owner() argument
[all...]
/linux/tools/testing/selftests/proc/
H A Dproc-pidns.c40 FIXTURE(ns) FIXTURE() argument
46 FIXTURE_SETUP(ns) FIXTURE_SETUP() argument
94 FIXTURE_TEARDOWN(ns) FIXTURE_TEARDOWN() argument
103 TEST_F(ns,pidns_mount_string_path) TEST_F() argument
115 TEST_F(ns,pidns_fsconfig_string_path) TEST_F() argument
133 TEST_F(ns,pidns_fsconfig_fd) TEST_F() argument
151 TEST_F(ns,pidns_reconfigure_remount) TEST_F() argument
165 TEST_F(ns,pidns_reconfigure_fsconfig_string_path) TEST_F() argument
188 TEST_F(ns,pidns_reconfigure_fsconfig_fd) TEST_F() argument
[all...]
/linux/kernel/
H A Dnscommon.c11 static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops) in ns_debug()
56 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… in __ns_common_init()
92 void __ns_common_free(struct ns_common *ns) in __ns_common_free()
97 struct ns_common *__must_check ns_owner(struct ns_common *ns) in ns_owner()
164 void __ns_ref_active_put(struct ns_common *ns) in __ns_ref_active_put()
282 void __ns_ref_active_get(struct ns_common *ns) in __ns_ref_active_get()
H A Dutsname.c21 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
39 struct uts_namespace *ns; in clone_uts_ns() local
96 void free_uts_ns(struct uts_namespace *ns) in free_uts_ns()
108 struct uts_namespace *ns = NULL; in utsns_get() local
122 static void utsns_put(struct ns_common *ns) in utsns_put()
130 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local
142 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
H A Duser_namespace.c34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
85 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local
199 struct user_namespace *parent, *ns = in free_user_ns() local
231 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
422 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
490 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
557 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
615 struct user_namespace *ns = seq->private; in uid_m_show() local
636 struct user_namespace *ns = seq->private; in gid_m_show() local
657 struct user_namespace *ns = seq->private; in projid_m_show() local
[all …]
H A Dnstree.c197 void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_add_raw()
233 void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_remove()
265 const struct ns_common *ns = node_to_ns(node); in ns_find() local
277 const struct ns_common *ns = node_to_ns_unified(node); in ns_find_unified() local
365 struct ns_common *__ns_tree_adjoined_rcu(struct ns_common *ns, in __ns_tree_adjoined_rcu()
392 u64 __ns_tree_gen_id(struct ns_common *ns, u64 id) in __ns_tree_gen_id()
476 struct ns_common *ns; in lookup_ns_owner_at() local
496 struct ns_common *ns; in lookup_ns_id() local
510 const struct ns_common *ns) in ns_requested()
516 struct ns_common *ns) in may_list_ns()
[all …]
H A Dcapability.c277 struct user_namespace *ns, int cap) in has_ns_capability()
302 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
330 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common()
360 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
378 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
397 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
450 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
472 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, in privileged_wrt_inode_uidgid()
493 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local
508 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
/linux/tools/testing/selftests/filesystems/
H A Dfclog.c27 FIXTURE(ns) in FIXTURE() argument
32 FIXTURE_SETUP(ns) in FIXTURE_SETUP() argument
43 FIXTURE_TEARDOWN(ns) in FIXTURE_TEARDOWN() argument
49 TEST_F(ns, fscontext_log_enodata) in TEST_F() argument
62 TEST_F(ns, fscontext_log_errorfc) in TEST_F() argument
78 TEST_F(ns, fscontext_log_errorfc_after_fsmount) in TEST_F() argument
103 TEST_F(ns, fscontext_log_emsgsize) in TEST_F() argument
/linux/drivers/nvme/host/
H A Dmultipath.c149 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local
180 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_start_request() local
204 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_end_request() local
218 struct nvme_ns *ns; in nvme_kick_requeue_lists() local
242 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
259 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local
274 struct nvme_ns *ns; in nvme_mpath_revalidate_paths() local
310 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled()
331 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path() local
370 struct nvme_ns *ns) in nvme_next_ns()
[all …]
H A Dioctl.c61 static bool nvme_ns_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c, in nvme_ns_cmd_allowed()
96 static bool nvme_cmd_allowed(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_cmd_allowed()
137 struct nvme_ns *ns = q->queuedata; in nvme_alloc_user_request() local
161 struct nvme_ns *ns = q->queuedata; in nvme_map_user_request() local
198 struct nvme_ns *ns = q->queuedata; in nvme_submit_user_cmd() local
237 static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio, in nvme_submit_io()
304 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid()
316 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd()
364 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64()
481 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io()
[all …]
H A Dzns.c38 int nvme_query_zone_info(struct nvme_ns *ns, unsigned lbaf, in nvme_query_zone_info()
108 void nvme_update_zone_info(struct nvme_ns *ns, struct queue_limits *lim, in nvme_update_zone_info()
119 static void *nvme_zns_alloc_report_buffer(struct nvme_ns *ns, in nvme_zns_alloc_report_buffer()
149 static int nvme_zone_parse_entry(struct nvme_ns *ns, in nvme_zone_parse_entry()
176 int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector, in nvme_ns_report_zones()
239 blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, struct request *req, in nvme_setup_zone_mgmt_send()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws.c130 static int mlx5_cmd_hws_create_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_hws_create_ns()
154 static int mlx5_cmd_hws_destroy_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_hws_destroy_ns()
160 static int mlx5_cmd_hws_set_peer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_set_peer()
173 static int mlx5_fs_set_ft_default_miss(struct mlx5_flow_root_namespace *ns, in mlx5_fs_set_ft_default_miss()
197 static int mlx5_fs_add_flow_table_dest_action(struct mlx5_flow_root_namespace *ns, in mlx5_fs_add_flow_table_dest_action()
220 static int mlx5_fs_del_flow_table_dest_action(struct mlx5_flow_root_namespace *ns, in mlx5_fs_del_flow_table_dest_action()
241 static int mlx5_cmd_hws_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_create_flow_table()
301 static int mlx5_cmd_hws_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_destroy_flow_table()
324 static int mlx5_cmd_hws_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_modify_flow_table()
334 static int mlx5_cmd_hws_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_update_root_ft()
[all …]
/linux/kernel/cgroup/
H A Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces()
36 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns()
92 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install()
114 struct cgroup_namespace *ns = NULL; in cgroupns_get() local
128 static void cgroupns_put(struct ns_common *ns) in cgroupns_put()
133 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c189 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument
192 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument
195 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument
198 #define NS_RAW_OFFSET(ns) \ argument
202 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument
205 #define NS_PAGE_BYTE_SHIFT(ns) ((ns)->regs.column + (ns)->regs.off) argument
500 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create()
525 static void ns_debugfs_remove(struct nandsim *ns) in ns_debugfs_remove()
536 static int __init ns_alloc_device(struct nandsim *ns) in ns_alloc_device()
607 static void ns_free_device(struct nandsim *ns) in ns_free_device()
[all …]

12345678910>>...15