Home
last modified time | relevance | path

Searched full:ns (Results 1 – 25 of 1784) sorted by relevance

12345678910>>...72

/linux/tools/testing/selftests/net/forwarding/
H A Dfib_offload_lib.sh7 local ns=$1; shift
13 ip -n $ns -j -p -$family route show $route \
29 local ns=$1; shift
34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail
39 local ns=$1; shift
43 fib_trap_check $ns 4 "$route" $should_fail
48 local ns=$1; shift
52 fib_trap_check $ns 6 "$route" $should_fail
57 local ns=$1; shift
63 ip -n $ns link add name dummy$i type dummy
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c9 * Note: NS means "NAND Simulator".
189 #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
199 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column)
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
491 DEFINE_SHOW_ATTRIBUTE(ns);
495 * @ns: nandsim device description object
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c57 * aa_ns_name - Find the ns name to display for @view from @curr
71 /* at this point if a ns is visible it is in a view ns in aa_ns_name()
72 * thus the curr ns.hname is a prefix of its name. in aa_ns_name()
107 struct aa_ns *ns; in alloc_ns() local
109 ns = kzalloc(sizeof(*ns), GFP_KERNEL); in alloc_ns()
110 AA_DEBUG("%s(%p)\n", __func__, ns); in alloc_ns()
111 if (!ns) in alloc_ns()
113 if (!aa_policy_init(&ns->base, prefix, name, GFP_KERNEL)) in alloc_ns()
116 INIT_LIST_HEAD(&ns->sub_ns); in alloc_ns()
117 INIT_LIST_HEAD(&ns->rawdata_list); in alloc_ns()
[all …]
/linux/drivers/net/netdevsim/
H A Dnetdev.c59 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local
68 if (!nsim_ipsec_tx(ns, skb)) in nsim_start_xmit()
71 peer_ns = rcu_dereference(ns->peer); in nsim_start_xmit()
96 u64_stats_update_begin(&ns->syncp); in nsim_start_xmit()
97 ns->tx_packets++; in nsim_start_xmit()
98 ns->tx_bytes += len; in nsim_start_xmit()
99 u64_stats_update_end(&ns->syncp); in nsim_start_xmit()
106 u64_stats_update_begin(&ns->syncp); in nsim_start_xmit()
107 ns->tx_dropped++; in nsim_start_xmit()
108 u64_stats_update_end(&ns->syncp); in nsim_start_xmit()
[all …]
H A Dethtool.c14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() local
16 if (ns->ethtool.pauseparam.report_stats_rx) in nsim_get_pause_stats()
18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats()
25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local
28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() local
40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam()
41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam()
50 struct netdevsim *ns = netdev_priv(dev); in nsim_get_coalesce() local
[all …]
H A Dudp_tunnels.c15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local
18 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_set_port()
19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port()
21 if (ns->udp_ports.sleep) in nsim_udp_tunnel_set_port()
22 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_set_port()
25 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
29 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
44 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() local
47 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_unset_port()
48 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_unset_port()
[all …]
H A Dbpf.c41 struct netdevsim *ns; member
87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() argument
89 return ns->xdp_hw.prog; in nsim_xdp_offload_active()
104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() argument
106 nsim_prog_set_loaded(ns->bpf_offloaded, false); in nsim_bpf_offload()
108 WARN(!!ns->bpf_offloaded != oldprog, in nsim_bpf_offload()
111 ns->bpf_offloaded = prog; in nsim_bpf_offload()
112 ns->bpf_offloaded_id = prog ? prog->aux->id : 0; in nsim_bpf_offload()
123 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb() local
132 if (!tc_cls_can_offload_and_chain0(ns->netdev, &cls_bpf->common)) in nsim_bpf_setup_tc_block_cb()
[all …]
/linux/ipc/
H A Dnamespace.c28 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() argument
30 return inc_ucount(ns, current_euid(), UCOUNT_IPC_NAMESPACES); in inc_ipc_namespaces()
41 struct ipc_namespace *ns; in create_ipc_ns() local
60 ns = kzalloc(sizeof(struct ipc_namespace), GFP_KERNEL_ACCOUNT); in create_ipc_ns()
61 if (ns == NULL) in create_ipc_ns()
64 err = ns_alloc_inum(&ns->ns); in create_ipc_ns()
67 ns->ns.ops = &ipcns_operations; in create_ipc_ns()
69 refcount_set(&ns->ns.count, 1); in create_ipc_ns()
70 ns->user_ns = get_user_ns(user_ns); in create_ipc_ns()
71 ns->ucounts = ucounts; in create_ipc_ns()
[all …]
/linux/kernel/
H A Dpid_namespace.c63 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() argument
65 return inc_ucount(ns, current_euid(), UCOUNT_PID_NAMESPACES); in inc_pid_namespaces()
78 struct pid_namespace *ns; in create_pid_namespace() local
95 ns = kmem_cache_zalloc(pid_ns_cachep, GFP_KERNEL); in create_pid_namespace()
96 if (ns == NULL) in create_pid_namespace()
99 idr_init(&ns->idr); in create_pid_namespace()
101 ns->pid_cachep = create_pid_cachep(level); in create_pid_namespace()
102 if (ns->pid_cachep == NULL) in create_pid_namespace()
105 err = ns_alloc_inum(&ns->ns); in create_pid_namespace()
108 ns->ns.ops = &pidns_operations; in create_pid_namespace()
[all …]
H A Dutsname.c20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() argument
22 return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES); in inc_uts_namespaces()
36 refcount_set(&uts_ns->ns.count, 1); in create_uts_ns()
41 * Clone a new ns copying an original utsname, setting refcount to 1
43 * Return ERR_PTR(-ENOMEM) on error (failure to allocate), new ns otherwise
48 struct uts_namespace *ns; in clone_uts_ns() local
58 ns = create_uts_ns(); in clone_uts_ns()
59 if (!ns) in clone_uts_ns()
62 err = ns_alloc_inum(&ns->ns); in clone_uts_ns()
66 ns->ucounts = ucounts; in clone_uts_ns()
[all …]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh31 local ns=$1
38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
44 local ns=$1
52 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 …
53 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 …
55 do_esp_policy $ns $me $remote $lnet $rnet
72 local ns=$1
75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_state.c26 union drbd_state ns; member
281 union drbd_state ns, enum chg_state_flags flags,
285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns);
287 union drbd_state ns, enum sanitize_state_warnings *warn);
465 * @ns: new (wanted) state.
468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg()
473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg()
[all …]
/linux/fs/
H A Dnsfs.c32 struct ns_common *ns = inode->i_private; in ns_dname() local
33 const struct proc_ns_operations *ns_ops = ns->ops; in ns_dname()
46 struct ns_common *ns = inode->i_private; in nsfs_evict() local
48 ns->ops->put(ns); in nsfs_evict()
54 struct ns_common *ns; in ns_get_path_cb() local
56 ns = ns_get_cb(private_data); in ns_get_path_cb()
57 if (!ns) in ns_get_path_cb()
60 return path_from_stashed(&ns->stashed, nsfs_mnt, ns, path); in ns_get_path_cb()
88 * @ns: the namespace to open
90 * This will consume a reference to @ns indendent of success or failure.
[all …]
/linux/drivers/nvme/host/
H A Dmultipath.c139 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local
144 nvme_mpath_clear_current_path(ns); in nvme_failover_req()
151 if (nvme_is_ana_error(status) && ns->ctrl->ana_log_buf) { in nvme_failover_req()
152 set_bit(NVME_NS_ANA_PENDING, &ns->flags); in nvme_failover_req()
153 queue_work(nvme_wq, &ns->ctrl->ana_work); in nvme_failover_req()
156 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req()
158 bio_set_dev(bio, ns->head->disk->part0); in nvme_failover_req()
172 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req()
173 spin_unlock_irqrestore(&ns->head->requeue_lock, flags); in nvme_failover_req()
177 kblockd_schedule_work(&ns->head->requeue_work); in nvme_failover_req()
[all …]
H A Dzns.c38 int nvme_query_zone_info(struct nvme_ns *ns, unsigned lbaf, in nvme_query_zone_info() argument
41 struct nvme_effects_log *log = ns->head->effects; in nvme_query_zone_info()
49 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_query_zone_info()
50 dev_warn(ns->ctrl->device, in nvme_query_zone_info()
52 ns->head->ns_id); in nvme_query_zone_info()
54 set_bit(NVME_NS_FORCE_RO, &ns->flags); in nvme_query_zone_info()
55 dev_warn(ns->ctrl->device, in nvme_query_zone_info()
57 ns->head->ns_id); in nvme_query_zone_info()
61 if (!ns->ctrl->max_zone_append) { in nvme_query_zone_info()
62 status = nvme_set_max_append(ns->ctrl); in nvme_query_zone_info()
[all …]
H A Dioctl.c17 static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c, in nvme_cmd_allowed() argument
43 if (!ns) { in nvme_cmd_allowed()
62 effects = nvme_command_effects(ns->ctrl, ns, c->common.opcode); in nvme_cmd_allowed()
120 struct nvme_ns *ns = q->queuedata; in nvme_map_user_request() local
121 struct block_device *bdev = ns ? ns->disk->part0 : NULL; in nvme_map_user_request()
172 struct nvme_ns *ns = q->queuedata; in nvme_submit_user_cmd() local
194 effects = nvme_passthru_start(ctrl, ns, cmd->common.opcode); in nvme_submit_user_cmd()
203 nvme_passthru_end(ctrl, ns, effects, cmd, ret); in nvme_submit_user_cmd()
211 static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) in nvme_submit_io() argument
232 length = (io.nblocks + 1) << ns->head->lba_shift; in nvme_submit_io()
[all …]
/linux/include/linux/
H A Dipc_namespace.h58 /* # queues in this ns, protected by mq_lock */
74 /* user_ns which owns the ipc ns */
80 struct ns_common ns; member
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
93 extern int mq_init_ns(struct ipc_namespace *ns);
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument
133 struct user_namespace *user_ns, struct ipc_namespace *ns);
135 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
137 if (ns) in get_ipc_ns()
[all …]
/linux/kernel/cgroup/
H A Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() argument
14 return inc_ucount(ns, current_euid(), UCOUNT_CGROUP_NAMESPACES); in inc_cgroup_namespaces()
30 ret = ns_alloc_inum(&new_ns->ns); in alloc_cgroup_ns()
35 refcount_set(&new_ns->ns.count, 1); in alloc_cgroup_ns()
36 new_ns->ns.ops = &cgroupns_operations; in alloc_cgroup_ns()
40 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns() argument
42 put_css_set(ns->root_cset); in free_cgroup_ns()
43 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns()
44 put_user_ns(ns->user_ns); in free_cgroup_ns()
45 ns_free_inum(&ns->ns); in free_cgroup_ns()
[all …]
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c51 void nvmet_bdev_ns_disable(struct nvmet_ns *ns) in nvmet_bdev_ns_disable() argument
53 if (ns->bdev_file) { in nvmet_bdev_ns_disable()
54 fput(ns->bdev_file); in nvmet_bdev_ns_disable()
55 ns->bdev = NULL; in nvmet_bdev_ns_disable()
56 ns->bdev_file = NULL; in nvmet_bdev_ns_disable()
60 static void nvmet_bdev_ns_enable_integrity(struct nvmet_ns *ns) in nvmet_bdev_ns_enable_integrity() argument
62 struct blk_integrity *bi = bdev_get_integrity(ns->bdev); in nvmet_bdev_ns_enable_integrity()
68 ns->metadata_size = bi->tuple_size; in nvmet_bdev_ns_enable_integrity()
70 ns->pi_type = NVME_NS_DPS_PI_TYPE1; in nvmet_bdev_ns_enable_integrity()
72 ns->pi_type = NVME_NS_DPS_PI_TYPE3; in nvmet_bdev_ns_enable_integrity()
[all …]
H A Dio-cmd-file.c16 void nvmet_file_ns_revalidate(struct nvmet_ns *ns) in nvmet_file_ns_revalidate() argument
18 ns->size = i_size_read(ns->file->f_mapping->host); in nvmet_file_ns_revalidate()
21 void nvmet_file_ns_disable(struct nvmet_ns *ns) in nvmet_file_ns_disable() argument
23 if (ns->file) { in nvmet_file_ns_disable()
24 if (ns->buffered_io) in nvmet_file_ns_disable()
26 mempool_destroy(ns->bvec_pool); in nvmet_file_ns_disable()
27 ns->bvec_pool = NULL; in nvmet_file_ns_disable()
28 fput(ns->file); in nvmet_file_ns_disable()
29 ns->file = NULL; in nvmet_file_ns_disable()
33 int nvmet_file_ns_enable(struct nvmet_ns *ns) in nvmet_file_ns_enable() argument
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-cpu-opp.dtsi9 clock-latency-ns = <100000>;
15 clock-latency-ns = <100000>;
21 clock-latency-ns = <100000>;
27 clock-latency-ns = <100000>;
33 clock-latency-ns = <100000>;
39 clock-latency-ns = <100000>;
45 clock-latency-ns = <100000>;
52 clock-latency-ns = <100000>;
59 clock-latency-ns = <100000>;
66 clock-latency-ns = <100000>;
[all …]
H A Dtegra20-cpu-opp.dtsi9 clock-latency-ns = <400000>;
16 clock-latency-ns = <400000>;
23 clock-latency-ns = <400000>;
29 clock-latency-ns = <400000>;
35 clock-latency-ns = <400000>;
41 clock-latency-ns = <400000>;
48 clock-latency-ns = <400000>;
54 clock-latency-ns = <400000>;
60 clock-latency-ns = <400000>;
66 clock-latency-ns = <400000>;
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib.sh96 local ns="testns1"
100 ip -n $ns link add name dummy1 type dummy
101 ip -n $ns link set dev dummy1 up
103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true
111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
116 fib4_trap_check $ns "table main 192.0.2.2/32 dev dummy1" false
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap-gpmc-smsc911x.dtsi30 gpmc,cs-on-ns = <5>;
31 gpmc,cs-rd-off-ns = <150>;
32 gpmc,cs-wr-off-ns = <150>;
33 gpmc,adv-on-ns = <0>;
34 gpmc,adv-rd-off-ns = <15>;
35 gpmc,adv-wr-off-ns = <40>;
36 gpmc,oe-on-ns = <45>;
37 gpmc,oe-off-ns = <140>;
38 gpmc,we-on-ns = <45>;
39 gpmc,we-off-ns = <140>;
[all …]
/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dgate.json20 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100",
47 …derTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index…
74 …erTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index…
101 …est": "$TC action add action gate cycle-time-ext 20000000000ns sched-entry close 100000000ns index…
128 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde…
134 "cmdUnderTest": "$TC action replace action gate base-time 400000000000ns index 20",
161 …"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b inde…
194 …"$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b inde…
226 …"$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b inde…
227 …"$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b ind…
[all …]

12345678910>>...72