/linux-master/include/uapi/linux/netfilter/ |
H A D | xt_mark.h | 8 __u32 mark, mask; member in struct:xt_mark_tginfo2 12 __u32 mark, mask; member in struct:xt_mark_mtinfo1
|
H A D | xt_connmark.h | 33 __u32 mark, mask; member in struct:xt_connmark_mtinfo1
|
/linux-master/fs/notify/ |
H A D | mark.c | 7 * 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 160 struct fsnotify_mark *mark; local 272 fsnotify_final_mark_destroy(struct fsnotify_mark *mark) argument 293 fsnotify_put_mark(struct fsnotify_mark *mark) argument 355 fsnotify_get_mark_safe(struct fsnotify_mark *mark) argument 379 fsnotify_put_mark_wake(struct fsnotify_mark *mark) argument 442 fsnotify_detach_mark(struct fsnotify_mark *mark) argument 471 fsnotify_free_mark(struct fsnotify_mark *mark) argument 493 fsnotify_destroy_mark(struct fsnotify_mark *mark, struct fsnotify_group *group) argument 601 fsnotify_add_mark_list(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags) argument 669 fsnotify_add_mark_locked(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags) argument 709 fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags) argument 730 struct fsnotify_mark *mark; local 753 struct fsnotify_mark *lmark, *mark; local 798 struct fsnotify_mark *mark, *old_mark = NULL; local 836 fsnotify_init_mark(struct fsnotify_mark *mark, struct fsnotify_group *group) argument 854 struct fsnotify_mark *mark, *next; local [all...] |
H A D | fdinfo.c | 27 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); 76 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) argument 81 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) 84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); 85 inode = igrab(fsnotify_conn_inode(mark->connector)); 89 inotify_mark_user_mask(mark)); 105 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 D | Makefile | 2 obj-$(CONFIG_FSNOTIFY) += fsnotify.o notification.o group.o mark.o \
|
H A D | fsnotify.c | 266 /* Check interest of this mark in case event was sent with two marks */ 335 struct fsnotify_mark *mark; local 343 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { 344 if (!(mark->flags & 346 mark->ignore_mask = 0; 351 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { 352 group = mark->group; 353 marks_mask |= mark->mask; 355 fsnotify_effective_ignore_mask(mark, is_dir, type); 386 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) argument 407 struct fsnotify_mark *mark; local 451 struct fsnotify_mark *mark; local [all...] |
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_wrr.c | 108 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 D | ebt_mark.c | 12 /* 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 D | ebt_mark_m.c | 22 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 D | ebt_mark_t.h | 18 unsigned long mark; member in struct:ebt_mark_t_info 22 #define EBT_MARK_TARGET "mark"
|
H A D | ebt_mark_m.h | 11 unsigned long mark, mask; member in struct:ebt_mark_m_info
|
/linux-master/samples/bpf/ |
H A D | xdp2skb_meta_kern.c | 4 * 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 D | test_cgrp2_sock.c | 30 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 D | audit_fsnotify.c | 23 * 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 D | audit_tree.c | 28 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 D | test_lwt_reroute.c | 19 /* 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 D | test_ldsx_insn.c | 96 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 D | test_skb_ctx.c | 21 skb->mark++;
|
/linux-master/drivers/staging/media/atomisp/pci/runtime/tagger/interface/ |
H A D | ia_css_tagger_common.h | 35 u8 mark; /* the mark on the element */ member in struct:__anon222
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | mark.c | 13 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 D | xt_mark.c | 18 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 D | nft_chain_route.c | 24 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 D | ip_set_hash_ipmark.c | 4 /* 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 D | af9005-remote.c | 76 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 D | smp-tbsync.c | 26 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);
|