Home
last modified time | relevance | path

Searched full:mark (Results 1 – 25 of 3853) sorted by relevance

12345678910>>...155

/openbmc/linux/fs/notify/
H A Dmark.c7 * fsnotify inode mark locking/lifetime/and refcnting
10 * The group->recnt and mark->refcnt tell how many "things" in the kernel
13 * the reference a group and a mark hold to each other.
22 * mark->lock
23 * mark->connector->lock
26 * each mark is hooked via the g_list. It also protects the groups private
29 * mark->lock protects the marks attributes like its masks and flags.
30 * Furthermore it protects the access to a reference of the group that the mark
32 * that is being watched by the mark.
34 * mark->connector->lock protects the list of marks anchored inside an
[all …]
H A Dfdinfo.c27 struct fsnotify_mark *mark)) in show_fdinfo() argument
30 struct fsnotify_mark *mark; in show_fdinfo() local
33 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo()
34 show(m, mark); in show_fdinfo()
76 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument
81 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo()
84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo()
85 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo()
89 inotify_mark_user_mask(mark)); in inotify_fdinfo()
105 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in fanotify_fdinfo() argument
[all …]
H A Dfsnotify.c271 /* Check interest of this mark in case event was sent with two marks */ in fsnotify_handle_inode_event()
343 struct fsnotify_mark *mark; in send_to_group() local
351 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group()
352 if (!(mark->flags & in send_to_group()
354 mark->ignore_mask = 0; in send_to_group()
359 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group()
360 group = mark->group; in send_to_group()
361 marks_mask |= mark->mask; in send_to_group()
363 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group()
394 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) in fsnotify_next_mark() argument
[all …]
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c108 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local
111 * Allocate the mark variable for WRR scheduling in ip_vs_wrr_init_svc()
113 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); in ip_vs_wrr_init_svc()
114 if (mark == NULL) in ip_vs_wrr_init_svc()
117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc()
118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc()
119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc()
120 mark->cw = mark->mw; in ip_vs_wrr_init_svc()
121 svc->sched_data = mark; in ip_vs_wrr_init_svc()
129 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc() local
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_fpga.py98 @pytest.mark.xfail
99 @pytest.mark.buildconfigspec('cmd_fpga')
107 @pytest.mark.buildconfigspec('cmd_fpga')
116 @pytest.mark.buildconfigspec('cmd_fpga')
120 @pytest.mark.buildconfigspec('cmd_fpga')
127 @pytest.mark.buildconfigspec('cmd_fpga')
138 @pytest.mark.buildconfigspec('cmd_fpga')
149 @pytest.mark.buildconfigspec('cmd_fpga')
156 @pytest.mark.buildconfigspec('cmd_fpga')
172 @pytest.mark.buildconfigspec('cmd_fpga')
[all …]
H A Dtest_gpt.py71 @pytest.mark.boardspec('sandbox')
72 @pytest.mark.buildconfigspec('cmd_gpt')
73 @pytest.mark.buildconfigspec('cmd_part')
74 @pytest.mark.requiredtool('sgdisk')
88 @pytest.mark.boardspec('sandbox')
89 @pytest.mark.buildconfigspec('cmd_gpt')
90 @pytest.mark.requiredtool('sgdisk')
98 @pytest.mark.boardspec('sandbox')
99 @pytest.mark.buildconfigspec('cmd_gpt')
100 @pytest.mark.requiredtool('sgdisk')
[all …]
H A Dtest_pinmux.py6 @pytest.mark.buildconfigspec('cmd_pinmux')
13 @pytest.mark.buildconfigspec('cmd_pinmux')
20 @pytest.mark.buildconfigspec('cmd_pinmux')
21 @pytest.mark.boardspec('sandbox')
31 @pytest.mark.buildconfigspec('cmd_pinmux')
32 @pytest.mark.boardspec('sandbox')
38 @pytest.mark.buildconfigspec('cmd_pinmux')
47 @pytest.mark.buildconfigspec('cmd_pinmux')
48 @pytest.mark.boardspec('sandbox')
56 @pytest.mark.buildconfigspec('cmd_pinmux')
[all …]
H A Dtest_sf.py167 @pytest.mark.buildconfigspec('cmd_sf')
168 @pytest.mark.buildconfigspec('cmd_crc32')
169 @pytest.mark.buildconfigspec('cmd_memory')
174 @pytest.mark.buildconfigspec('cmd_sf')
175 @pytest.mark.buildconfigspec('cmd_crc32')
176 @pytest.mark.buildconfigspec('cmd_memory')
186 @pytest.mark.buildconfigspec('cmd_sf')
187 @pytest.mark.buildconfigspec('cmd_crc32')
188 @pytest.mark.buildconfigspec('cmd_memory')
209 @pytest.mark.buildconfigspec('cmd_sf')
[all …]
/openbmc/linux/kernel/
H A Daudit_fsnotify.c23 * this mark lives on the parent directory of the inode in question.
30 struct fsnotify_mark mark; /* fsnotify mark on the inode */ member
47 static void audit_fsnotify_free_mark(struct fsnotify_mark *mark) in audit_fsnotify_free_mark() argument
51 audit_mark = container_of(mark, struct audit_fsnotify_mark, mark); in audit_fsnotify_free_mark()
55 char *audit_mark_path(struct audit_fsnotify_mark *mark) in audit_mark_path() argument
57 return mark->path; in audit_mark_path()
60 int audit_mark_compare(struct audit_fsnotify_mark *mark, unsigned long ino, dev_t dev) in audit_mark_compare() argument
62 if (mark->ino == AUDIT_INO_UNSET) in audit_mark_compare()
64 return (mark->ino == ino) && (mark->dev == dev); in audit_mark_compare()
97 fsnotify_init_mark(&audit_mark->mark, audit_fsnotify_group); in audit_alloc_mark()
[all …]
H A Daudit_tree.c28 struct fsnotify_mark *mark; member
41 struct fsnotify_mark mark; member
51 * audit_tree_mark (fsnotify mark). We replace struct chunk on tagging /
52 * untagging, the mark is stable as long as there is chunk attached. The
53 * association between mark and chunk is protected by hash_lock and
55 * audit_tree_group->mark_mutex and check that the mark is alive by
56 * FSNOTIFY_MARK_FLAG_ATTACHED flag check, we are sure the mark points to
77 * chunk is refcounted by embedded .refs. Mark associated with the chunk holds
78 * one chunk reference. This reference is dropped either when a mark is going
80 * mark gets replaced. This reference must be dropped using
[all …]
/openbmc/linux/net/bridge/netfilter/
H A Debt_mark.c12 /* The mark target can be used in any chain,
29 skb->mark = info->mark; in ebt_mark_tg()
31 skb->mark |= info->mark; in ebt_mark_tg()
33 skb->mark &= info->mark; in ebt_mark_tg()
35 skb->mark ^= info->mark; in ebt_mark_tg()
58 compat_ulong_t mark; member
67 kern->mark = user->mark; in mark_tg_compat_from_user()
76 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user()
84 .name = "mark",
110 MODULE_DESCRIPTION("Ebtables: Packet mark modification");
H A Debt_mark_m.c22 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt()
23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt()
42 compat_ulong_t mark, mask; member
51 kern->mark = user->mark; in mark_mt_compat_from_user()
62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user()
98 MODULE_DESCRIPTION("Ebtables: Packet mark match");
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dskbedit.json4 "name": "Add skbedit action with valid mark",
17 "cmdUnderTest": "$TC actions add action skbedit mark 1",
20 "matchPattern": "action order [0-9]*: skbedit mark 1",
28 "name": "Add skbedit action with 32-bit maximum mark",
41 "cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1",
44 "matchPattern": "action order [0-9]*: skbedit mark 4294967295.*pipe.*index 1",
52 "name": "Add skbedit action with mark exceeding 32-bit maximum",
65 "cmdUnderTest": "$TC actions add action skbedit mark 666777888999",
68 "matchPattern": "action order [0-9]*: skbedit mark",
74 "name": "Add skbedit action with valid mark and mask",
[all …]
H A Dife.json4 "name": "Create valid ife encode action with mark and pass control",
17 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2",
20 …"matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2",
28 "name": "Create valid ife encode action with mark and pipe control",
41 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2",
44 … "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2",
52 "name": "Create valid ife encode action with mark and continue control",
65 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",
68 …chPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*index 2",
76 "name": "Create valid ife encode action with mark and drop control",
[all …]
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_sock.c30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) in prog_load() argument
48 /* set mark on socket */ in prog_load()
55 /* if uid is 0, use given mark, else use the uid as the mark */ in prog_load()
58 BPF_MOV64_IMM(BPF_REG_3, mark), in prog_load()
60 /* set the mark on the new socket */ in prog_load()
62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load()
63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load()
87 if (mark) in prog_load()
107 if (mark) { in prog_load()
145 unsigned int mark = 0; in get_somark() local
[all …]
H A Dtest_cgrp2_sock.sh98 check_sock "dev , mark 0, priority 0" "No programs attached"
99 check_sock6 "dev , mark 0, priority 0" "No programs attached"
107 check_sock "dev cgrp2_sock, mark 0, priority 0" "Device set"
108 check_sock6 "dev cgrp2_sock, mark 0, priority 0" "Device set"
110 # verify mark is set
114 cleanup_and_exit 1 "Failed to install program to set mark"
116 check_sock "dev , mark 666, priority 0" "Mark set"
117 check_sock6 "dev , mark 666, priority 0" "Mark set"
125 check_sock "dev , mark 0, priority 123" "Priority set"
126 check_sock6 "dev , mark 0, priority 123" "Priority set"
[all …]
H A Dxdp2skb_meta_kern.c4 * Example howto transfer info from XDP to SKB, e.g. skb->mark
28 __u32 mark; member
57 meta->mark = 42; in _xdp_mark()
72 ctx->mark = 41; in _tc_mark()
78 ctx->mark = meta->mark; /* Transfer XDP-mark to SKB-mark */ in _tc_mark()
98 iptables -I INPUT -p icmp -m mark --mark 41 # == 0x29
99 iptables -I INPUT -p icmp -m mark --mark 42 # == 0x2a
/openbmc/linux/include/linux/
H A Dfsnotify_backend.h60 * Set on inode mark that cares about things that happen to its children.
95 * It may include events that can be sent to an inode/sb/mount mark, but cannot
139 * @mark: mark to notify
150 * freeing_mark - called when a mark is being destroyed for some reason. The group
151 * MUST be holding a reference on each mark and that reference must be
160 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask,
164 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group);
167 void (*free_mark)(struct fsnotify_mark *mark);
262 * evictable marks of the same group that is allocating a new mark.
385 /* The type of object that a mark is attached to */
[all …]
/openbmc/linux/net/netfilter/ipset/
H A Dip_set_hash_ipmark.c4 /* Kernel module implementing an IP set type: the hash:ip,mark type */
29 IP_SET_MODULE_DESC("hash:ip,mark", IPSET_TYPE_REV_MIN, IPSET_TYPE_REV_MAX);
30 MODULE_ALIAS("ip_set_hash:ip,mark");
41 __u32 mark; member
52 ip1->mark == ip2->mark; in hash_ipmark4_data_equal()
60 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list()
89 e.mark = skb->mark; in hash_ipmark4_kadt()
90 e.mark &= h->markmask; in hash_ipmark4_kadt()
122 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt()
123 e.mark &= h->markmask; in hash_ipmark4_uadt()
[all …]
/openbmc/linux/net/netfilter/
H A Dxt_mark.c18 MODULE_DESCRIPTION("Xtables: packet mark operations");
30 skb->mark = (skb->mark & ~info->mask) ^ info->mark; in mark_tg()
39 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in mark_mt()
44 .name = "MARK",
53 .name = "MARK",
63 .name = "MARK",
74 .name = "mark",
H A Dxt_connmark.c19 MODULE_DESCRIPTION("Xtables: connection mark operations");
41 oldmark = READ_ONCE(ct->mark); in connmark_tg_shift()
48 if (READ_ONCE(ct->mark) != newmark) { in connmark_tg_shift()
49 WRITE_ONCE(ct->mark, newmark); in connmark_tg_shift()
54 new_targetmark = (skb->mark & info->nfmask); in connmark_tg_shift()
60 newmark = (READ_ONCE(ct->mark) & ~info->ctmask) ^ in connmark_tg_shift()
62 if (READ_ONCE(ct->mark) != newmark) { in connmark_tg_shift()
63 WRITE_ONCE(ct->mark, newmark); in connmark_tg_shift()
68 new_targetmark = (READ_ONCE(ct->mark) & info->ctmask); in connmark_tg_shift()
74 newmark = (skb->mark & ~info->nfmask) ^ in connmark_tg_shift()
[all …]
H A Dnft_chain_route.c24 u32 mark; in nf_route_table_hook4() local
31 mark = skb->mark; in nf_route_table_hook4()
43 skb->mark != mark || in nf_route_table_hook4()
71 u32 mark, flowlabel; in nf_route_table_hook6() local
79 /* save source/dest address, mark, hoplimit, flowlabel, priority */ in nf_route_table_hook6()
82 mark = skb->mark; in nf_route_table_hook6()
92 skb->mark != mark || in nf_route_table_hook6()
/openbmc/linux/lib/
H A Dxarray.c25 * @mark is an xa_mark_t; a small number indicating one of the mark bits.
68 static inline void xa_mark_set(struct xarray *xa, xa_mark_t mark) in xa_mark_set() argument
70 if (!(xa->xa_flags & XA_FLAGS_MARK(mark))) in xa_mark_set()
71 xa->xa_flags |= XA_FLAGS_MARK(mark); in xa_mark_set()
74 static inline void xa_mark_clear(struct xarray *xa, xa_mark_t mark) in xa_mark_clear() argument
76 if (xa->xa_flags & XA_FLAGS_MARK(mark)) in xa_mark_clear()
77 xa->xa_flags &= ~(XA_FLAGS_MARK(mark)); in xa_mark_clear()
80 static inline unsigned long *node_marks(struct xa_node *node, xa_mark_t mark) in node_marks() argument
82 return node->marks[(__force unsigned)mark]; in node_marks()
86 unsigned int offset, xa_mark_t mark) in node_get_mark() argument
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dcmsg_so_mark.sh9 MARK=1000
29 ip -netns $NS rule add fwmark $MARK lookup 300
30 ip -6 -netns $NS rule add fwmark $MARK lookup 300
57 [ $ovr == "both" ] && m="-M $MARK -m"
59 ip netns exec $NS ./cmsg_sender -$i -p $p $m $((MARK + 1)) $TGT 1234
62 [ $ovr == "diff" ] && m="-M $((MARK + 1)) -m"
64 ip netns exec $NS ./cmsg_sender -$i -p $p $m $MARK -s $TGT 1234
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/
H A D50-gbmc-br-cn-redirect.rules4 iifname == "cn0" mark set 1 return
5 iifname == "cn1" mark set 2 return
15 tcp dport 10167-10168 mark set 0xff
16 mark 1 tcp dport 10166 tcp dport set 10167 notrack
17 mark 2 tcp dport 10166 tcp dport set 10168 notrack

12345678910>>...155