/kernel/linux/linux-5.10/fs/notify/ |
D | mark.c | 94 void fsnotify_get_mark(struct fsnotify_mark *mark) in fsnotify_get_mark() argument 96 WARN_ON_ONCE(!refcount_read(&mark->refcnt)); in fsnotify_get_mark() 97 refcount_inc(&mark->refcnt); in fsnotify_get_mark() 122 struct fsnotify_mark *mark; in __fsnotify_recalc_mask() local 128 hlist_for_each_entry(mark, &conn->list, obj_list) { in __fsnotify_recalc_mask() 129 if (mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED) in __fsnotify_recalc_mask() 130 new_mask |= mark->mask; in __fsnotify_recalc_mask() 199 static void fsnotify_final_mark_destroy(struct fsnotify_mark *mark) in fsnotify_final_mark_destroy() argument 201 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy() 205 group->ops->free_mark(mark); in fsnotify_final_mark_destroy() [all …]
|
D | fdinfo.c | 26 struct fsnotify_mark *mark)) in show_fdinfo() argument 29 struct fsnotify_mark *mark; in show_fdinfo() local 32 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo() 33 show(m, mark); in show_fdinfo() 75 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument 80 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo() 83 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo() 84 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo() 88 inotify_mark_user_mask(mark)); in inotify_fdinfo() 104 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in fanotify_fdinfo() argument [all …]
|
D | fsnotify.c | 322 struct fsnotify_mark *mark; in send_to_group() local 333 mark = iter_info->marks[type]; in send_to_group() 334 if (mark && in send_to_group() 335 !(mark->flags & FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY)) in send_to_group() 336 mark->ignored_mask = 0; in send_to_group() 343 mark = iter_info->marks[type]; in send_to_group() 345 if (mark) { in send_to_group() 346 group = mark->group; in send_to_group() 347 marks_mask |= mark->mask; in send_to_group() 348 marks_ignored_mask |= mark->ignored_mask; in send_to_group() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 108 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local 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 134 kfree_rcu(mark, rcu_head); in ip_vs_wrr_done_svc() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | audit_fsnotify.c | 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() 98 audit_mark->mark.mask = AUDIT_FS_EVENTS; in audit_alloc_mark() [all …]
|
D | audit_tree.c | 28 struct fsnotify_mark *mark; member 41 struct fsnotify_mark mark; member 161 static inline struct audit_tree_mark *audit_mark(struct fsnotify_mark *mark) in audit_mark() argument 163 return container_of(mark, struct audit_tree_mark, mark); in audit_mark() 166 static struct audit_chunk *mark_chunk(struct fsnotify_mark *mark) in mark_chunk() argument 168 return audit_mark(mark)->chunk; in mark_chunk() 171 static void audit_tree_destroy_watch(struct fsnotify_mark *mark) in audit_tree_destroy_watch() argument 173 kmem_cache_free(audit_tree_mark_cachep, audit_mark(mark)); in audit_tree_destroy_watch() 183 fsnotify_init_mark(&amark->mark, audit_tree_group); in alloc_mark() 184 amark->mark.mask = FS_IN_IGNORED; in alloc_mark() [all …]
|
D | audit_watch.c | 48 struct fsnotify_mark mark; /* fsnotify mark on the inode */ member 68 parent = container_of(entry, struct audit_parent, mark); in audit_watch_free_mark() 75 fsnotify_get_mark(&parent->mark); in audit_get_parent() 81 fsnotify_put_mark(&parent->mark); in audit_put_parent() 95 parent = container_of(entry, struct audit_parent, mark); in audit_find_parent() 148 fsnotify_init_mark(&parent->mark, audit_watch_group); in audit_init_parent() 149 parent->mark.mask = AUDIT_FS_WATCH; in audit_init_parent() 150 ret = fsnotify_add_inode_mark(&parent->mark, inode, 0); in audit_init_parent() 343 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_parent_watches() 461 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_watch_rule() [all …]
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
D | ebt_mark.c | 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()
|
D | ebt_mark_m.c | 22 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()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | test_cgrp2_sock.c | 30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) in prog_load() argument 58 BPF_MOV64_IMM(BPF_REG_3, mark), 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() 83 if (mark) in prog_load() 103 if (mark) { in prog_load() 141 unsigned int mark = 0; in get_somark() local 142 socklen_t optlen = sizeof(mark); in get_somark() 145 rc = getsockopt(sd, SOL_SOCKET, SO_MARK, &mark, &optlen); in get_somark() 149 return mark; in get_somark() [all …]
|
D | xdp2skb_meta_kern.c | 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()
|
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
D | ip_set_hash_ipmark.c | 40 __u32 mark; member 51 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 59 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list() 88 e.mark = skb->mark; in hash_ipmark4_kadt() 89 e.mark &= h->markmask; in hash_ipmark4_kadt() 121 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt() 122 e.mark &= h->markmask; in hash_ipmark4_uadt() 123 if (e.mark == 0 && e.ip == 0) in hash_ipmark4_uadt() 138 if (e.mark == 0 && ip_to == 0) in hash_ipmark4_uadt() 172 __u32 mark; member [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_connmark.c | 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() 76 skb->mark = newmark; in connmark_tg_shift() [all …]
|
D | nft_chain_route.c | 24 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 82 mark = skb->mark; in nf_route_table_hook6() 92 skb->mark != mark || in nf_route_table_hook6()
|
D | xt_mark.c | 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()
|
D | xt_TPROXY.c | 76 skb->mark = (skb->mark & ~mark_mask) ^ mark_value; in tproxy_tg4() 80 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 88 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg4() 170 skb->mark = (skb->mark & ~tgi->mark_mask) ^ tgi->mark_value; in tproxy_tg6_v1() 174 laddr, ntohs(lport), skb->mark); in tproxy_tg6_v1() 182 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg6_v1()
|
/kernel/linux/linux-5.10/lib/ |
D | xarray.c | 66 static inline void xa_mark_set(struct xarray *xa, xa_mark_t mark) in xa_mark_set() argument 68 if (!(xa->xa_flags & XA_FLAGS_MARK(mark))) in xa_mark_set() 69 xa->xa_flags |= XA_FLAGS_MARK(mark); in xa_mark_set() 72 static inline void xa_mark_clear(struct xarray *xa, xa_mark_t mark) in xa_mark_clear() argument 74 if (xa->xa_flags & XA_FLAGS_MARK(mark)) in xa_mark_clear() 75 xa->xa_flags &= ~(XA_FLAGS_MARK(mark)); in xa_mark_clear() 78 static inline unsigned long *node_marks(struct xa_node *node, xa_mark_t mark) in node_marks() argument 80 return node->marks[(__force unsigned)mark]; in node_marks() 84 unsigned int offset, xa_mark_t mark) in node_get_mark() argument 86 return test_bit(offset, node_marks(node, mark)); in node_get_mark() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | fsnotify_backend.h | 153 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask, 157 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); 160 void (*free_mark)(struct fsnotify_mark *mark); 319 struct fsnotify_mark *mark) in fsnotify_iter_set_report_type_mark() argument 321 iter_info->marks[type] = mark; in fsnotify_iter_set_report_type_mark() 513 extern void fsnotify_init_mark(struct fsnotify_mark *mark, 522 extern int fsnotify_add_mark(struct fsnotify_mark *mark, 525 extern int fsnotify_add_mark_locked(struct fsnotify_mark *mark, 531 static inline int fsnotify_add_inode_mark(struct fsnotify_mark *mark, in fsnotify_add_inode_mark() argument 535 return fsnotify_add_mark(mark, &inode->i_fsnotify_marks, in fsnotify_add_inode_mark() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | smp-tbsync.c | 26 volatile u64 mark; member 39 static void enter_contest(u64 mark, long add) in enter_contest() argument 41 while (get_tb() < mark) in enter_contest() 73 enter_contest(tbsync->mark, -1); in smp_generic_take_timebase() 82 u64 mark; in start_contest() local 90 tbsync->mark = mark = tb + 400; in start_contest() 101 enter_contest(mark, 1); in start_contest()
|
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
D | af9005-remote.c | 76 u16 mark, space; in af9005_rc_decode() local 82 mark = (u16) (data[0] << 8) + data[1]; in af9005_rc_decode() 84 if (space * 3 < mark) { in af9005_rc_decode() 100 mark = (u16) (data[i] << 8) + data[i + 1]; in af9005_rc_decode() 101 mark >>= 1; in af9005_rc_decode() 104 if (mark * 2 > space) in af9005_rc_decode()
|
/kernel/linux/linux-5.10/include/net/tc_act/ |
D | tc_skbedit.h | 17 u32 mark; member 54 u32 mark; in tcf_skbedit_mark() local 57 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark() 60 return mark; in tcf_skbedit_mark()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ipcomp.c | 41 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 74 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create() 100 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() local 102 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ipcomp6.c | 59 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 93 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp6_tunnel_create() 117 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() local 121 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
/kernel/linux/linux-5.10/drivers/dma/sh/ |
D | shdma-base.c | 64 if (sdesc->mark == DESC_SUBMITTED) { in shdma_chan_xfer_ld_queue() 91 if (chunk != desc && (chunk->mark == DESC_IDLE || in shdma_tx_submit() 96 chunk->mark = DESC_SUBMITTED; in shdma_tx_submit() 162 if (sdesc->mark != DESC_PREPARED) { in shdma_get_desc() 163 BUG_ON(sdesc->mark != DESC_IDLE); in shdma_get_desc() 240 desc->mark = DESC_IDLE; in shdma_alloc_chan_resources() 340 BUG_ON(desc->mark != DESC_SUBMITTED && in __ld_cleanup() 341 desc->mark != DESC_COMPLETED && in __ld_cleanup() 342 desc->mark != DESC_WAITING); in __ld_cleanup() 349 if (!all && desc->mark == DESC_SUBMITTED && in __ld_cleanup() [all …]
|
/kernel/linux/linux-5.10/fs/cachefiles/ |
D | key.c | 38 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local 86 mark = len - 1; in cachefiles_cook_key() 101 mark = len; in cachefiles_cook_key() 120 mark = len; in cachefiles_cook_key() 149 key[mark] = type; in cachefiles_cook_key()
|