Searched refs:mark (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/linux-master/include/uapi/linux/netfilter/
H A Dxt_mark.h8 __u32 mark, mask; member in struct:xt_mark_tginfo2
12 __u32 mark, mask; member in struct:xt_mark_mtinfo1
H A Dxt_connmark.h33 __u32 mark, mask; member in struct:xt_connmark_mtinfo1
/linux-master/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
94 fsnotify_get_mark(struct fsnotify_mark *mark) argument
234 struct fsnotify_mark *mark; local
323 fsnotify_final_mark_destroy(struct fsnotify_mark *mark) argument
344 fsnotify_put_mark(struct fsnotify_mark *mark) argument
411 fsnotify_get_mark_safe(struct fsnotify_mark *mark) argument
435 fsnotify_put_mark_wake(struct fsnotify_mark *mark) argument
498 fsnotify_detach_mark(struct fsnotify_mark *mark) argument
527 fsnotify_free_mark(struct fsnotify_mark *mark) argument
549 fsnotify_destroy_mark(struct fsnotify_mark *mark, struct fsnotify_group *group) argument
674 fsnotify_add_mark_list(struct fsnotify_mark *mark, void *obj, unsigned int obj_type, int add_flags) argument
755 fsnotify_add_mark_locked(struct fsnotify_mark *mark, void *obj, unsigned int obj_type, int add_flags) argument
795 fsnotify_add_mark(struct fsnotify_mark *mark, void *obj, unsigned int obj_type, int add_flags) argument
817 struct fsnotify_mark *mark; local
843 struct fsnotify_mark *lmark, *mark; local
888 struct fsnotify_mark *mark, *old_mark = NULL; local
926 fsnotify_init_mark(struct fsnotify_mark *mark, struct fsnotify_group *group) argument
944 struct fsnotify_mark *mark, *next; local
[all...]
H A Dfdinfo.c27 struct fsnotify_mark *mark))
30 struct fsnotify_mark *mark; local
33 list_for_each_entry(mark, &group->marks_list, g_list) {
34 show(m, mark);
72 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) argument
77 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE)
80 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark);
81 inode = igrab(fsnotify_conn_inode(mark->connector));
85 inotify_mark_user_mask(mark));
101 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) argument
25 show_fdinfo(struct seq_file *m, struct file *f, void (*show)(struct seq_file *m, struct fsnotify_mark *mark)) argument
[all...]
H A DMakefile2 obj-$(CONFIG_FSNOTIFY) += fsnotify.o notification.o group.o mark.o \
H A Dfsnotify.c280 /* Check interest of this mark in case event was sent with two marks */
349 struct fsnotify_mark *mark; local
357 fsnotify_foreach_iter_mark_type(iter_info, mark, type) {
358 if (!(mark->flags &
360 mark->ignore_mask = 0;
365 fsnotify_foreach_iter_mark_type(iter_info, mark, type) {
366 group = mark->group;
367 marks_mask |= mark->mask;
369 fsnotify_effective_ignore_mask(mark, is_dir, type);
400 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) argument
421 struct fsnotify_mark *mark; local
465 struct fsnotify_mark *mark; local
[all...]
/linux-master/net/netfilter/ipvs/
H A Dip_vs_wrr.c108 struct ip_vs_wrr_mark *mark; local
111 * Allocate the mark variable for WRR scheduling
113 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL);
114 if (mark == NULL)
117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list);
118 mark->di = ip_vs_wrr_gcd_weight(svc);
119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1);
120 mark->cw = mark
129 struct ip_vs_wrr_mark *mark = svc->sched_data; local
141 struct ip_vs_wrr_mark *mark = svc->sched_data; local
164 struct ip_vs_wrr_mark *mark = svc->sched_data; local
[all...]
/linux-master/net/bridge/netfilter/
H A Debt_mark.c12 /* The mark target can be used in any chain,
29 skb->mark = info->mark;
31 skb->mark |= info->mark;
33 skb->mark &= info->mark;
35 skb->mark ^= info->mark;
58 compat_ulong_t mark; member in struct:compat_ebt_mark_t_info
[all...]
H A Debt_mark_m.c22 return !!(skb->mark & info->mask) ^ info->invert;
23 return ((skb->mark & info->mask) == info->mark) ^ info->invert;
42 compat_ulong_t mark, mask; member in struct:compat_ebt_mark_m_info
51 kern->mark = user->mark;
62 if (put_user(kern->mark, &user->mark) ||
98 MODULE_DESCRIPTION("Ebtables: Packet mark match");
/linux-master/include/uapi/linux/netfilter_bridge/
H A Debt_mark_t.h18 unsigned long mark; member in struct:ebt_mark_t_info
22 #define EBT_MARK_TARGET "mark"
H A Debt_mark_m.h11 unsigned long mark, mask; member in struct:ebt_mark_m_info
/linux-master/samples/bpf/
H A Dxdp2skb_meta_kern.c4 * Example howto transfer info from XDP to SKB, e.g. skb->mark
28 __u32 mark; member in struct:meta_info
57 meta->mark = 42;
72 ctx->mark = 41;
78 ctx->mark = meta->mark; /* Transfer XDP-mark to SKB-mark */
98 iptables -I INPUT -p icmp -m mark --mark 4
[all...]
H A Dtest_cgrp2_sock.c30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) argument
48 /* set mark on socket */
55 /* if uid is 0, use given mark, else use the uid as the mark */
58 BPF_MOV64_IMM(BPF_REG_3, mark),
60 /* set the mark on the new socket */
62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)),
63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)),
87 if (mark)
107 if (mark) {
145 unsigned int mark = 0; local
171 unsigned int mark, prio; local
210 __u32 idx = 0, mark = 0, prio = 0; local
[all...]
/linux-master/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 in struct:audit_fsnotify_mark
47 static void audit_fsnotify_free_mark(struct fsnotify_mark *mark) argument
51 audit_mark = container_of(mark, struct audit_fsnotify_mark, mark);
55 char *audit_mark_path(struct audit_fsnotify_mark *mark) argument
57 return mark->path;
60 int audit_mark_compare(struct audit_fsnotify_mark *mark, unsigned long ino, dev_t dev) argument
62 if (mark
141 struct audit_fsnotify_mark *mark = krule->exe; local
[all...]
H A Daudit_tree.c28 struct fsnotify_mark *mark; member in struct:audit_chunk
41 struct fsnotify_mark mark; member in struct:audit_tree_mark
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
78 * one chunk reference. This reference is dropped either when a mark is going
80 * mark gets replaced. This reference must be dropped using
85 * MSB of that sucker is stolen to mark tagging
161 audit_mark(struct fsnotify_mark *mark) argument
166 mark_chunk(struct fsnotify_mark *mark) argument
171 audit_tree_destroy_watch(struct fsnotify_mark *mark) argument
279 replace_mark_chunk(struct fsnotify_mark *mark, struct audit_chunk *chunk) argument
349 untag_chunk(struct audit_chunk *chunk, struct fsnotify_mark *mark) argument
399 struct fsnotify_mark *mark; local
460 struct fsnotify_mark *mark; local
575 struct fsnotify_mark *mark; local
1035 audit_tree_handle_event(struct fsnotify_mark *mark, u32 mask, struct inode *inode, struct inode *dir, const struct qstr *file_name, u32 cookie) argument
1042 audit_tree_freeing_mark(struct fsnotify_mark *mark, struct fsnotify_group *group) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_reroute.c19 /* set mark at most once */
20 if (skb->mark != 0)
27 skb->mark = bpf_ntohl(iph->daddr) & 0xff;
30 if (skb->mark == 0)
H A Dtest_ldsx_insn.c96 old_mark = skb->mark;
98 skb->mark = 0xf6fe;
109 [off_mark]"i"(offsetof(struct __sk_buff, mark)
111 + sizeof(skb->mark) - 1
116 tmp_mark = (char)skb->mark;
120 skb->mark = old_mark;
H A Dtest_skb_ctx.c21 skb->mark++;
/linux-master/drivers/staging/media/atomisp/pci/runtime/tagger/interface/
H A Dia_css_tagger_common.h35 u8 mark; /* the mark on the element */ member in struct:__anon222
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmark.c13 if (act->mark & ~MLX5E_TC_FLOW_ID_MASK) {
14 NL_SET_ERR_MSG_MOD(parse_state->extack, "Bad flow mark, only 16 bit supported");
27 attr->nic_attr->flow_tag = act->mark;
/linux-master/net/netfilter/
H A Dxt_mark.c18 MODULE_DESCRIPTION("Xtables: packet mark operations");
30 skb->mark = (skb->mark & ~info->mask) ^ info->mark;
39 return ((skb->mark & info->mask) == info->mark) ^ info->invert;
52 .name = "mark",
H A Dnft_chain_route.c24 u32 mark; local
31 mark = skb->mark;
43 skb->mark != mark ||
71 u32 mark, flowlabel; local
79 /* save source/dest address, mark, hoplimit, flowlabel, priority */
82 mark = skb->mark;
92 skb->mark !
[all...]
/linux-master/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 in struct:hash_ipmark4_elem
52 ip1->mark == ip2->mark;
60 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark)))
89 e.mark = skb->mark;
90 e.mark
173 __u32 mark; member in struct:hash_ipmark6_elem
[all...]
/linux-master/drivers/media/usb/dvb-usb/
H A Daf9005-remote.c76 u16 mark, space; local
82 mark = (u16) (data[0] << 8) + data[1];
84 if (space * 3 < mark) {
100 mark = (u16) (data[i] << 8) + data[i + 1];
101 mark >>= 1;
104 if (mark * 2 > space)
/linux-master/arch/powerpc/kernel/
H A Dsmp-tbsync.c26 volatile u64 mark; member in struct:__anon778
39 static void enter_contest(u64 mark, long add) argument
41 while (get_tb() < mark)
73 enter_contest(tbsync->mark, -1);
82 u64 mark; local
90 tbsync->mark = mark = tb + 400;
101 enter_contest(mark, 1);

Completed in 209 milliseconds

1234567891011>>