Searched refs:ns (Results 101 - 125 of 676) sorted by relevance

1234567891011>>

/linux-master/include/linux/dsa/
H A Dksz_common.h20 u64 ns = FIELD_GET(KSZ_TSTAMP_SEC_MASK, tstamp) * NSEC_PER_SEC + local
23 return ns_to_ktime(ns);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dvporttbl.c25 esw_vport_tbl_init(struct mlx5_eswitch *esw, struct esw_vport_tbl_namespace *ns) argument
28 ns->flags |= (MLX5_FLOW_TABLE_TUNNEL_EN_REFORMAT |
33 esw_vport_tbl_create(struct mlx5_eswitch *esw, struct mlx5_flow_namespace *ns, argument
46 fdb = mlx5_create_auto_grouped_flow_table(ns, &ft_attr);
84 struct mlx5_flow_namespace *ns; local
105 ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB);
106 if (!ns) {
112 fdb = esw_vport_tbl_create(esw, ns, attr->vport_ns);
/linux-master/fs/
H A Dmount.h9 struct ns_common ns; member in struct:mnt_namespace
53 struct rb_node mnt_node; /* Under ns->mounts */
117 static inline void get_mnt_ns(struct mnt_namespace *ns) argument
119 refcount_inc(&ns->ns.count);
125 struct mnt_namespace *ns; member in struct:proc_mounts
141 static inline bool is_anon_ns(struct mnt_namespace *ns) argument
143 return ns->seq == 0;
154 extern void mnt_cursor_del(struct mnt_namespace *ns, struct mount *cursor);
/linux-master/tools/testing/selftests/net/
H A Dtest_bridge_backup_port.sh114 local ns=$1; shift
121 pkts=$(tc -n $ns -j -s filter show $id \
129 local ns=$1; shift
133 bridge -n $ns -d -j link show dev $dev | \
142 local ns=$1; shift
144 ip netns exec $ns sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
145 ip netns exec $ns sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
146 ip netns exec $ns sysctl -qw net.ipv6.conf.all.accept_dad=0
147 ip netns exec $ns sysctl -qw net.ipv6.conf.default.accept_dad=0
152 local ns
[all...]
H A Dtest_bridge_neigh_suppress.sh122 local ns=$1; shift
129 pkts=$(tc -n $ns -j -s filter show $id \
140 local ns=$1; shift
142 ip netns exec $ns sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
143 ip netns exec $ns sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
144 ip netns exec $ns sysctl -qw net.ipv6.conf.all.accept_dad=0
145 ip netns exec $ns sysctl -qw net.ipv6.conf.default.accept_dad=0
150 local ns
153 for ns in $h1 $h2 $sw1 $sw2; do
154 setup_topo_ns $ns
[all...]
H A Dvrf-xfrm-tests.sh86 local ns=$1
90 if [ -n "${ns}" ]; then
91 ns="-netns ${ns}"
94 ip ${ns} link add ${vrf} type vrf table ${table}
95 ip ${ns} link set ${vrf} up
96 ip ${ns} route add vrf ${vrf} unreachable default metric 8192
97 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
99 ip ${ns} addr add 127.0.0.1/8 dev ${vrf}
100 ip ${ns}
[all...]
H A Dvrf_route_leaking.sh180 local ns=$1
182 ip -netns "${ns}" rule del pref 0
183 ip -netns "${ns}" rule add pref 32765 from all lookup local
184 ip -netns "${ns}" -6 rule del pref 0
185 ip -netns "${ns}" -6 rule add pref 32765 from all lookup local
190 local ns=$1
194 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}"
195 ip -netns "${ns}" link set "${vrf}" up
196 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192
197 ip -netns "${ns}"
[all...]
H A Dicmp_redirect.sh118 local ns=$1
122 addr=$(ip -netns $ns -6 -br addr show dev ${dev} | \
149 local ns=$1
151 ip -netns ${ns} link add ${VRF} type vrf table ${VRF_TABLE}
152 ip -netns ${ns} link set ${VRF} up
153 ip -netns ${ns} route add vrf ${VRF} unreachable default metric 8192
154 ip -netns ${ns} -6 route add vrf ${VRF} unreachable default metric 8192
156 ip -netns ${ns} addr add 127.0.0.1/8 dev ${VRF}
157 ip -netns ${ns} -6 addr add ::1 dev ${VRF} nodad
159 ip -netns ${ns} r
[all...]
/linux-master/tools/testing/selftests/nsfs/
H A Dpidns.c44 char path[] = "/proc/0123456789/ns/pid";
47 int ns, pns, i; local
55 snprintf(path, sizeof(path), "/proc/%d/ns/%s", pid, ns_strs[i]);
56 ns = open(path, O_RDONLY);
57 if (ns < 0)
60 pns = ioctl(ns, NS_GET_PARENT);
64 snprintf(path, sizeof(path), "/proc/self/ns/%s", ns_strs[i]);
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-meta-cap.h11 __u64 ns; member in struct:vivid_uvc_meta_buf
/linux-master/drivers/usb/dwc3/
H A Dulpi.c26 unsigned long ns = 5L * DWC3_ULPI_BASE_DELAY; local
31 ns += DWC3_ULPI_BASE_DELAY;
34 ns += DWC3_ULPI_BASE_DELAY;
41 ndelay(ns);
/linux-master/kernel/time/
H A Dtimecounter.c72 u64 ns = (u64) cycles; local
74 ns = ((ns * cc->mult) - frac) >> cc->shift;
76 return ns;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dhelper.h11 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size);
/linux-master/include/linux/sched/
H A Ddebug.h41 struct pid_namespace *ns, struct seq_file *m);
/linux-master/net/qrtr/
H A DMakefile3 qrtr-y := af_qrtr.o ns.o
/linux-master/security/apparmor/
H A Dlabel.c99 * ns_cmp - compare ns for label set ordering
100 * @a: ns to compare (NOT NULL)
101 * @b: ns to compare (NOT NULL)
141 AA_BUG(!a->ns);
142 AA_BUG(!b->ns);
148 res = ns_cmp(a->ns, b->ns);
375 struct aa_ns *ns = labels_ns(label); local
377 if (!ns) {
1179 * Requires: labels be fully constructed with a valid ns
1446 aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) argument
1478 use_label_hname(struct aa_ns *ns, struct aa_label *label, int flags) argument
1555 label_modename(struct aa_ns *ns, struct aa_label *label, int flags) argument
1588 display_mode(struct aa_ns *ns, struct aa_label *label, int flags) argument
1625 aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, struct aa_label *label, int flags) argument
1689 aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp) argument
1718 aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp) argument
1737 aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp) argument
1767 aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp) argument
1791 aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp) argument
1816 struct aa_ns *ns = aa_get_current_ns(); local
1824 struct aa_ns *ns = aa_get_current_ns(); local
1832 struct aa_ns *ns = aa_get_current_ns(); local
2124 __labelset_update(struct aa_ns *ns) argument
2150 __aa_labelset_update_subtree(struct aa_ns *ns) argument
[all...]
/linux-master/include/linux/
H A Dprojid.h58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) argument
60 return from_kprojid(ns, projid) != (projid_t)-1;
83 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) argument
H A Dktime.h136 s64 ns = kt; local
137 u64 tmp = ns < 0 ? -ns : ns;
140 return ns < 0 ? -tmp : tmp;
220 static inline ktime_t ns_to_ktime(u64 ns)
222 return ns;
/linux-master/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-timestamp.c46 u64 ns; local
48 ns = timecounter_cyc2time(&priv->tc, timestamp);
49 hwtstamps->hwtstamp = ns_to_ktime(ns);
/linux-master/security/apparmor/include/
H A Dcred.h69 * Returns: up to date confining label or the ns unconfined label (NOT NULL)
116 * Returns: up to date confining label or the ns unconfined label (NOT NULL)
138 * Returns: up to date confining label or the ns unconfined label (NOT NULL)
166 struct aa_ns *ns; local
169 ns = aa_get_ns(labels_ns(label));
172 return ns;
H A Dapparmorfs.h107 void __aa_bump_ns_revision(struct aa_ns *ns);
112 void __aafs_ns_rmdir(struct aa_ns *ns);
113 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name,
120 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata);
127 static inline int __aa_fs_create_rawdata(struct aa_ns *ns, argument
/linux-master/drivers/nvme/host/
H A Dfault_inject.c64 struct nvme_ns *ns = disk->private_data; local
66 if (ns)
67 fault_inject = &ns->fault_inject;
/linux-master/ipc/
H A Dsem.c169 #define sem_ids(ns) ((ns)->ids[IPC_SEM_IDS])
249 void sem_init_ns(struct ipc_namespace *ns) argument
251 ns->sc_semmsl = SEMMSL;
252 ns->sc_semmns = SEMMNS;
253 ns->sc_semopm = SEMOPM;
254 ns->sc_semmni = SEMMNI;
255 ns->used_sems = 0;
256 ipc_init_ids(&ns->ids[IPC_SEM_IDS]);
260 void sem_exit_ns(struct ipc_namespace *ns) argument
478 sem_obtain_object(struct ipc_namespace *ns, int id) argument
488 sem_obtain_object_check(struct ipc_namespace *ns, int id) argument
505 sem_rmid(struct ipc_namespace *ns, struct sem_array *s) argument
531 newary(struct ipc_namespace *ns, struct ipc_params *params) argument
604 struct ipc_namespace *ns; local
1143 freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) argument
1234 semctl_stat(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64) argument
1308 semctl_info(struct ipc_namespace *ns, int semid, int cmd, void __user *p) argument
1343 semctl_setval(struct ipc_namespace *ns, int semid, int semnum, int val) argument
1405 semctl_main(struct ipc_namespace *ns, int semid, int semnum, int cmd, void __user *p) argument
1601 semctl_down(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64) argument
1653 struct ipc_namespace *ns; local
1777 struct ipc_namespace *ns; local
1906 find_alloc_undo(struct ipc_namespace *ns, int semid) argument
1983 __do_semtimedop(int semid, struct sembuf *sops, unsigned nsops, const struct timespec64 *timeout, struct ipc_namespace *ns) argument
2227 struct ipc_namespace *ns; local
[all...]
/linux-master/fs/sysfs/
H A Dsymlink.c124 const void *ns = NULL; local
133 ns = targ->sd->ns;
135 kernfs_remove_by_name_ns(kobj->sd, name, ns);
179 old_ns = targ->sd->ns;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.c43 static int mlx5_cmd_stub_update_root_ft(struct mlx5_flow_root_namespace *ns, argument
51 static int mlx5_cmd_stub_create_flow_table(struct mlx5_flow_root_namespace *ns, argument
63 static int mlx5_cmd_stub_destroy_flow_table(struct mlx5_flow_root_namespace *ns, argument
69 static int mlx5_cmd_stub_modify_flow_table(struct mlx5_flow_root_namespace *ns, argument
76 static int mlx5_cmd_stub_create_flow_group(struct mlx5_flow_root_namespace *ns, argument
84 static int mlx5_cmd_stub_destroy_flow_group(struct mlx5_flow_root_namespace *ns, argument
91 static int mlx5_cmd_stub_create_fte(struct mlx5_flow_root_namespace *ns, argument
99 static int mlx5_cmd_stub_update_fte(struct mlx5_flow_root_namespace *ns, argument
108 static int mlx5_cmd_stub_delete_fte(struct mlx5_flow_root_namespace *ns, argument
115 static int mlx5_cmd_stub_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, argument
123 mlx5_cmd_stub_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, struct mlx5_pkt_reformat *pkt_reformat) argument
128 mlx5_cmd_stub_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) argument
136 mlx5_cmd_stub_modify_header_dealloc(struct mlx5_flow_root_namespace *ns, struct mlx5_modify_hdr *modify_hdr) argument
141 mlx5_cmd_stub_set_peer(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_root_namespace *peer_ns, u16 peer_vhca_id) argument
148 mlx5_cmd_stub_create_ns(struct mlx5_flow_root_namespace *ns) argument
153 mlx5_cmd_stub_destroy_ns(struct mlx5_flow_root_namespace *ns) argument
158 mlx5_cmd_stub_get_capabilities(struct mlx5_flow_root_namespace *ns, enum fs_flow_table_type ft_type) argument
172 struct mlx5_flow_namespace *ns; local
198 mlx5_cmd_stub_destroy_match_definer(struct mlx5_flow_root_namespace *ns, int definer_id) argument
205 mlx5_cmd_stub_create_match_definer(struct mlx5_flow_root_namespace *ns, u16 format_id, u32 *match_mask) argument
211 mlx5_cmd_update_root_ft(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, u32 underlay_qpn, bool disconnect) argument
276 mlx5_cmd_create_flow_table(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct mlx5_flow_table_attr *ft_attr, struct mlx5_flow_table *next_ft) argument
348 mlx5_cmd_destroy_flow_table(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft) argument
370 mlx5_cmd_modify_flow_table(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct mlx5_flow_table *next_ft) argument
415 mlx5_cmd_create_flow_group(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, u32 *in, struct mlx5_flow_group *fg) argument
438 mlx5_cmd_destroy_flow_group(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct mlx5_flow_group *fg) argument
749 mlx5_cmd_create_fte(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct mlx5_flow_group *group, struct fs_fte *fte) argument
760 mlx5_cmd_update_fte(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct mlx5_flow_group *fg, int modify_mask, struct fs_fte *fte) argument
778 mlx5_cmd_delete_fte(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_table *ft, struct fs_fte *fte) argument
871 mlx5_cmd_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, struct mlx5_pkt_reformat_params *params, enum mlx5_flow_namespace_type namespace, struct mlx5_pkt_reformat *pkt_reformat) argument
932 mlx5_cmd_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, struct mlx5_pkt_reformat *pkt_reformat) argument
946 mlx5_cmd_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) argument
1018 mlx5_cmd_modify_header_dealloc(struct mlx5_flow_root_namespace *ns, struct mlx5_modify_hdr *modify_hdr) argument
1032 mlx5_cmd_destroy_match_definer(struct mlx5_flow_root_namespace *ns, int definer_id) argument
1047 mlx5_cmd_create_match_definer(struct mlx5_flow_root_namespace *ns, u16 format_id, u32 *match_mask) argument
1071 mlx5_cmd_get_capabilities(struct mlx5_flow_root_namespace *ns, enum fs_flow_table_type ft_type) argument
[all...]

Completed in 416 milliseconds

1234567891011>>