/linux-6.6.21/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() 160 struct fsnotify_mark *mark; in __fsnotify_recalc_mask() local 166 hlist_for_each_entry(mark, &conn->list, obj_list) { in __fsnotify_recalc_mask() 167 if (!(mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED)) in __fsnotify_recalc_mask() 169 new_mask |= fsnotify_calc_mask(mark); in __fsnotify_recalc_mask() 171 !(mark->flags & FSNOTIFY_MARK_FLAG_NO_IREF)) in __fsnotify_recalc_mask() 272 static void fsnotify_final_mark_destroy(struct fsnotify_mark *mark) in fsnotify_final_mark_destroy() argument 274 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy() [all …]
|
D | fdinfo.c | 27 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 …]
|
D | fsnotify.c | 329 struct fsnotify_mark *mark; in send_to_group() local 337 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 338 if (!(mark->flags & in send_to_group() 340 mark->ignore_mask = 0; in send_to_group() 345 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 346 group = mark->group; in send_to_group() 347 marks_mask |= mark->mask; in send_to_group() 349 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group() 380 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) in fsnotify_next_mark() argument 384 if (mark) in fsnotify_next_mark() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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() 344 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_parent_watches() 462 fsnotify_destroy_mark(&parent->mark, audit_watch_group); in audit_remove_watch_rule() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/include/linux/ ! |
D | fsnotify_backend.h | 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); 453 #define fsnotify_foreach_iter_mark_type(iter, mark, type) \ argument 455 type = fsnotify_iter_step(iter, type, &mark), \ 667 static inline __u32 fsnotify_ignore_mask(struct fsnotify_mark *mark) in fsnotify_ignore_mask() argument 669 __u32 ignore_mask = mark->ignore_mask; in fsnotify_ignore_mask() 672 if (mark->flags & FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS) in fsnotify_ignore_mask() 682 ignore_mask |= mark->mask & FS_EVENT_ON_CHILD; in fsnotify_ignore_mask() 688 static inline __u32 fsnotify_ignored_events(struct fsnotify_mark *mark) in fsnotify_ignored_events() argument [all …]
|
/linux-6.6.21/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() 87 if (mark) in prog_load() 107 if (mark) { in prog_load() 145 unsigned int mark = 0; in get_somark() local 146 socklen_t optlen = sizeof(mark); in get_somark() 149 rc = getsockopt(sd, SOL_SOCKET, SO_MARK, &mark, &optlen); in get_somark() 153 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()
|
/linux-6.6.21/net/netfilter/ipset/ ! |
D | ip_set_hash_ipmark.c | 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() 124 if (e.mark == 0 && e.ip == 0) in hash_ipmark4_uadt() 139 if (e.mark == 0 && ip_to == 0) in hash_ipmark4_uadt() 173 __u32 mark; member [all …]
|
/linux-6.6.21/lib/ ! |
D | xarray.c | 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 88 return test_bit(offset, node_marks(node, mark)); in node_get_mark() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ ! |
D | test_ldsx_insn.c | 94 old_mark = skb->mark; in _tc() 96 skb->mark = 0xf6fe; in _tc() 107 [off_mark]"i"(offsetof(struct __sk_buff, mark)) in _tc() 110 tmp_mark = (char)skb->mark; in _tc() 114 skb->mark = old_mark; in _tc()
|
/linux-6.6.21/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()
|
/linux-6.6.21/net/ipv4/ ! |
D | ipcomp.c | 42 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 75 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create() 101 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() local 103 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
/linux-6.6.21/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()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/include/net/tc_act/ ! |
D | tc_skbedit.h | 17 u32 mark; member 55 u32 mark; in tcf_skbedit_mark() local 58 mark = rcu_dereference(to_skbedit(a)->params)->mark; in tcf_skbedit_mark() 61 return mark; in tcf_skbedit_mark()
|
/linux-6.6.21/net/ipv4/netfilter/ ! |
D | iptable_mangle.c | 43 u_int32_t mark; in ipt_mangle_out() local 47 mark = skb->mark; in ipt_mangle_out() 60 skb->mark != mark || in ipt_mangle_out()
|