Home
last modified time | relevance | path

Searched +full:ns +full:- (Results 1 – 25 of 1071) sorted by relevance

12345678910>>...43

/linux/tools/testing/selftests/net/forwarding/
H A Dfib_offload_lib.sh1 # SPDX-License-Identifier: GPL-2.0
7 local ns=$1; shift
13 ip -n $ns -j -p -$family route show $route \
14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null
17 if [[ $ret -ne 0 ]]; then
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
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * Note: NS means "NAND Simulator".
142 MODULE_PARM_DESC(bus_width, "Chip's bus width (8- or 16-bit)");
143 MODULE_PARM_DESC(do_delays, "Simulate NAND delays using busy-waits if not zero");
165 "be correctable in 512-byte blocks");
182 /* Busy-wait delay macros (microseconds, milliseconds) */
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
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 1998-2008 Novell/SUSE
8 * Copyright 2009-2017 Canonical Ltd.
30 const char *aa_hidden_ns_name = "---";
33 * aa_ns_visible - test if @view is visible from @curr
48 for ( ; view; view = view->parent) { in aa_ns_visible()
49 if (view->parent == curr) in aa_ns_visible()
57 * 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()
[all …]
/linux/drivers/net/netdevsim/
H A Dethtool.c1 // SPDX-License-Identifier: GPL-2.0
14 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()
17 pause_stats->rx_pause_frames = 1; in nsim_get_pause_stats()
18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats()
19 pause_stats->tx_pause_frames = 2; in nsim_get_pause_stats()
25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local
27 pause->autoneg = 0; /* We don't support ksettings, so can't pretend */ in nsim_get_pauseparam()
28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
[all …]
H A Dnetdev.c5 * June 1991 as shown in the file COPYING in the top-level directory of this
42 struct netdevsim *ns = netdev_priv(dev); in nsim_start_peer_tx_queue() local
48 idx = rq->napi.index; in nsim_start_peer_tx_queue()
50 peer_ns = rcu_dereference(ns->peer); in nsim_start_peer_tx_queue()
55 peer_dev = peer_ns->netdev; in nsim_start_peer_tx_queue()
56 if (dev->real_num_tx_queues != peer_dev->num_rx_queues) in nsim_start_peer_tx_queue()
76 if (rx_dev->real_num_tx_queues != tx_dev->num_rx_queues) in nsim_stop_tx_queue()
81 NSIM_RING_SIZE - skb_queue_len(&rq->skb_queue), in nsim_stop_tx_queue()
88 if (skb_queue_len(&rq->skb_queue) > NSIM_RING_SIZE) { in nsim_napi_rx()
93 skb_queue_tail(&rq->skb_queue, skb); in nsim_napi_rx()
[all …]
H A Dudp_tunnels.c1 // SPDX-License-Identifier: GPL-2.0-only
15 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()
22 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
24 ret = -EBUSY; in nsim_udp_tunnel_set_port()
26 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
27 be16_to_cpu(ti->port) << 16 | ti->type; in nsim_udp_tunnel_set_port()
31 netdev_info(dev, "set [%d, %d] type %d family %d port %d - %d\n", in nsim_udp_tunnel_set_port()
32 table, entry, ti->type, ti->sa_family, ntohs(ti->port), in nsim_udp_tunnel_set_port()
[all …]
H A Dbpf.c5 * June 1991 as shown in the file COPYING in the top-level directory of this
41 struct netdevsim *ns; member
53 const char **str = file->private; in nsim_bpf_string_show()
68 state = env->prog->aux->offload->dev_priv; in nsim_bpf_verify_insn()
69 if (state->nsim_dev->bpf_bind_verifier_delay && !insn_idx) in nsim_bpf_verify_insn()
70 msleep(state->nsim_dev->bpf_bind_verifier_delay); in nsim_bpf_verify_insn()
72 if (insn_idx == env->prog->len - 1) { in nsim_bpf_verify_insn()
75 if (!state->nsim_dev->bpf_bind_verifier_accept) in nsim_bpf_verify_insn()
76 ret = -EOPNOTSUPP; in nsim_bpf_verify_insn()
87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() argument
[all …]
/linux/ipc/
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0
28 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
45 err = -ENOSPC; in create_ipc_ns()
59 err = -ENOMEM; in create_ipc_ns()
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()
[all …]
/linux/kernel/time/
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0
30 offset = timespec64_to_ktime(ns_offsets->monotonic); in do_timens_ktime_to_host()
34 offset = timespec64_to_ktime(ns_offsets->boottime); in do_timens_ktime_to_host()
46 * User can specify @tim *absolute* value - if it's lesser than in do_timens_ktime_to_host()
47 * the time namespace's offset - it's already expired. in do_timens_ktime_to_host()
59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() argument
61 return inc_ucount(ns, current_euid(), UCOUNT_TIME_NAMESPACES); in inc_time_namespaces()
70 * clone_time_ns - Clone a time namespace
81 struct time_namespace *ns; in clone_time_ns() local
85 err = -ENOSPC; in clone_time_ns()
[all …]
/linux/kernel/
H A Dpid_namespace.c1 // SPDX-License-Identifier: GPL-2.0-only
42 struct kmem_cache **pkc = &pid_cache[level - 1]; in create_pid_cachep()
63 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
79 unsigned int level = parent_pid_ns->level + 1; in create_pid_namespace()
83 err = -EINVAL; in create_pid_namespace()
84 if (!in_userns(parent_pid_ns->user_ns, user_ns)) in create_pid_namespace()
87 err = -ENOSPC; in create_pid_namespace()
94 err = -ENOMEM; in create_pid_namespace()
[all …]
H A Dutsname.c1 // SPDX-License-Identifier: GPL-2.0-only
20 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
52 err = -ENOSPC; in clone_uts_ns()
57 err = -ENOMEM; in clone_uts_ns()
58 ns = create_uts_ns(); in clone_uts_ns()
[all …]
H A Ducount.c1 // SPDX-License-Identifier: GPL-2.0-only
12 .ns = &init_user_ns,
20 [0 ... UCOUNTS_HASHTABLE_ENTRIES - 1] = HLIST_NULLS_HEAD_INIT(0)
24 #define ucounts_hashfn(ns, uid) \ argument
25 hash_long((unsigned long)__kuid_val(uid) + (unsigned long)(ns), \
27 #define ucounts_hashentry(ns, uid) \ argument
28 (ucounts_hashtable + ucounts_hashfn(ns, uid))
34 return &current_user_ns()->set; in set_lookup()
39 return &current_user_ns()->set == set; in set_is_seen()
46 container_of(head->set, struct user_namespace, set); in set_permissions()
[all …]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh2 # SPDX-License-Identifier: GPL-2.0
8 # ns1 ---- ns3 ----- ns4 ---- ns2
31 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
60 # re-built.
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_state.c1 // SPDX-License-Identifier: GPL-2.0-only
7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH.
8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>.
9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
26 union drbd_state ns; member
52 idr_for_each_entry(&resource->devices, device, vnr) in count_objects()
70 state_change->n_devices = n_devices; in alloc_state_change()
71 state_change->n_connections = n_connections; in alloc_state_change()
72 state_change->devices = (void *)(state_change + 1); in alloc_state_change()
73 state_change->connections = (void *)&state_change->devices[n_devices]; in alloc_state_change()
[all …]
/linux/fs/
H A Dnsfs.c1 // SPDX-License-Identifier: GPL-2.0
32 struct ns_common *ns = inode->i_private; in ns_dname() local
33 const struct proc_ns_operations *ns_ops = ns->ops; in ns_dname()
36 ns_ops->name, inode->i_ino); 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()
58 return -ENOENT; in ns_get_path_cb()
[all …]
/linux/drivers/nvme/host/
H A Dmultipath.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 Christoph Hellwig.
6 #include <linux/backing-dev.h>
18 bool *arg = kp->arg; in multipath_param_set()
27 return -EINVAL; in multipath_param_set()
46 bool *arg = kp->arg; in multipath_always_on_set()
66 …"create multipath node always except for private namespace with non-unique nsid; note that this al…
70 [NVME_IOPOLICY_RR] = "round-robin",
71 [NVME_IOPOLICY_QD] = "queue-depth",
79 return -EINVAL; in nvme_set_iopolicy()
[all …]
H A Dzns.c1 // SPDX-License-Identifier: GPL-2.0
18 return -ENOMEM; in nvme_set_max_append()
24 status = nvme_submit_sync_cmd(ctrl->admin_q, &c, id, sizeof(*id)); in nvme_set_max_append()
30 if (id->zasl) in nvme_set_max_append()
31 ctrl->max_zone_append = 1 << (id->zasl + 3); in nvme_set_max_append()
33 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append()
38 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()
47 if ((le32_to_cpu(log->iocs[nvme_cmd_zone_append]) & in nvme_query_zone_info()
49 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_query_zone_info()
[all …]
/linux/include/linux/
H A Dipc_namespace.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/rhashtable-types.h>
58 /* # 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);
106 * Per app minimum openable message queues - 8. This does not map well
110 * Minimum maximum for HARD_MSGMAX - 32767. I bumped this to 65536.
[all …]
/linux/kernel/cgroup/
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0
2 #include "cgroup-internal.h"
12 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()
29 return ERR_PTR(-ENOMEM); in alloc_cgroup_ns()
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()
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-cpu-opp.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 cpu0_opp_table: opp-table-cpu0 {
5 compatible = "operating-points-v2";
6 opp-shared;
8 opp-51000000-800 {
9 clock-latency-ns = <100000>;
10 opp-supported-hw = <0x1F 0x31FE>;
11 opp-hz = /bits/ 64 <51000000>;
14 opp-51000000-850 {
15 clock-latency-ns = <100000>;
[all …]
H A Dtegra20-cpu-opp.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 cpu0_opp_table: opp-table-cpu0 {
5 compatible = "operating-points-v2";
6 opp-shared;
8 opp-216000000-750 {
9 clock-latency-ns = <400000>;
10 opp-supported-hw = <0x0F 0x0003>;
11 opp-hz = /bits/ 64 <216000000>;
12 opp-suspend;
15 opp-216000000-800 {
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib.sh2 # SPDX-License-Identifier: GPL-2.0
96 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
[all …]
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
8 #include <linux/blk-integrity.h>
27 id->nsfeat |= 1 << 1; in nvmet_bdev_set_limits()
28 id->nawun = lpp0b; in nvmet_bdev_set_limits()
29 id->nawupf = lpp0b; in nvmet_bdev_set_limits()
30 id->nacwu = lpp0b; in nvmet_bdev_set_limits()
37 id->nsfeat |= 1 << 4; in nvmet_bdev_set_limits()
39 id->npwg = to0based(bdev_io_min(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
41 id->npwa = id->npwg; in nvmet_bdev_set_limits()
[all …]
H A Dio-cmd-file.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2017-2018 Western Digital Corporation or its
16 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()
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap-gpmc-smsc911x.dtsi1 // SPDX-License-Identifier: GPL-2.0
10 vddvario: regulator-vddvario {
11 compatible = "regulator-fixed";
12 regulator-name = "vddvario";
13 regulator-always-on;
16 vdd33a: regulator-vdd33a {
17 compatible = "regulator-fixed";
18 regulator-name = "vdd33a";
19 regulator-always-on;
26 bank-width = <2>;
[all …]

12345678910>>...43