| /linux-6.15/fs/notify/ |
| H A D | mark.c | 456 if (!mark) in fsnotify_get_mark_safe() 480 if (mark) { in fsnotify_put_mark_wake() 548 spin_lock(&mark->lock); in fsnotify_detach_mark() 574 spin_lock(&mark->lock); in fsnotify_free_mark() 742 spin_lock(&mark->lock); in fsnotify_add_mark_list() 814 spin_lock(&mark->lock); in fsnotify_add_mark_locked() 875 return mark; in fsnotify_find_mark() 951 old_mark = mark; in fsnotify_destroy_marks() 952 fsnotify_destroy_mark(mark, mark->group); in fsnotify_destroy_marks() 973 memset(mark, 0, sizeof(*mark)); in fsnotify_init_mark() [all …]
|
| H A 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() 75 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo() 79 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo() 83 inotify_mark_user_mask(mark)); in inotify_fdinfo() 110 mflags, mark->mask, mark->ignore_mask); in fanotify_fdinfo() 118 mnt->mnt_id, mflags, mark->mask, mark->ignore_mask); in fanotify_fdinfo() 123 sb->s_dev, mflags, mark->mask, mark->ignore_mask); in fanotify_fdinfo() [all …]
|
| H A D | fsnotify.c | 389 struct fsnotify_mark *mark; in send_to_group() local 398 if (!(mark->flags & in send_to_group() 400 mark->ignore_mask = 0; in send_to_group() 406 group = mark->group; in send_to_group() 407 marks_mask |= mark->mask; in send_to_group() 444 if (mark) in fsnotify_next_mark() 461 struct fsnotify_mark *mark; in fsnotify_iter_select_report_types() local 467 if (mark && in fsnotify_iter_select_report_types() 480 if (mark && mark->group == iter_info->current_group) { in fsnotify_iter_select_report_types() 505 struct fsnotify_mark *mark; in fsnotify_iter_next() local [all …]
|
| /linux-6.15/net/netfilter/ipvs/ |
| H A D | ip_vs_wrr.c | 114 if (mark == NULL) 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() 146 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_dest_changed() 147 if (mark->cw > mark->mw || !mark->cw) in ip_vs_wrr_dest_changed() 148 mark->cw = mark->mw; in ip_vs_wrr_dest_changed() 150 mark->cw = (mark->cw / mark->di) * mark->di + 1; in ip_vs_wrr_dest_changed() 170 dest = mark->cl; in ip_vs_wrr_schedule() 186 mark->cw -= mark->di; in ip_vs_wrr_schedule() 188 mark->cw = mark->mw; in ip_vs_wrr_schedule() [all …]
|
| /linux-6.15/kernel/ |
| H A D | audit_fsnotify.c | 30 struct fsnotify_mark mark; /* fsnotify mark on the inode */ member 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() 62 if (mark->ino == AUDIT_INO_UNSET) in audit_mark_compare() 64 return (mark->ino == ino) && (mark->dev == dev); in audit_mark_compare() 98 audit_mark->mark.mask = AUDIT_FS_EVENTS; in audit_alloc_mark() 106 fsnotify_put_mark(&audit_mark->mark); in audit_alloc_mark() 136 fsnotify_put_mark(&audit_mark->mark); in audit_remove_mark() 141 struct audit_fsnotify_mark *mark = krule->exe; in audit_remove_mark_rule() local [all …]
|
| H A D | audit_tree.c | 28 struct fsnotify_mark *mark; member 41 struct fsnotify_mark mark; member 163 return container_of(mark, struct audit_tree_mark, mark); in audit_mark() 185 return &amark->mark; in alloc_mark() 288 chunk->mark = mark; in replace_mark_chunk() 290 old->mark = NULL; in replace_mark_chunk() 407 mark = alloc_mark(); in create_chunk() 408 if (!mark) { in create_chunk() 467 if (!mark) in tag_chunk() 582 mark = chunk->mark; in prune_tree_chunks() [all …]
|
| /linux-6.15/net/bridge/netfilter/ |
| H A 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()
|
| H A 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.15/include/linux/ |
| H A D | fsnotify_backend.h | 184 void (*free_mark)(struct fsnotify_mark *mark); 530 type = fsnotify_iter_step(iter, type, &mark), \ 775 __u32 ignore_mask = mark->ignore_mask; in fsnotify_ignore_mask() 778 if (mark->flags & FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS) in fsnotify_ignore_mask() 788 ignore_mask |= mark->mask & FS_EVENT_ON_CHILD; in fsnotify_ignore_mask() 796 return mark->ignore_mask & ALL_FSNOTIFY_EVENTS; in fsnotify_ignored_events() 825 __u32 ignore_mask = fsnotify_ignored_events(mark); in fsnotify_effective_ignore_mask() 834 ignore_mask = fsnotify_ignore_mask(mark); in fsnotify_effective_ignore_mask() 844 __u32 mask = mark->mask; in fsnotify_calc_mask() 846 if (!fsnotify_ignored_events(mark)) in fsnotify_calc_mask() [all …]
|
| /linux-6.15/net/netfilter/ipset/ |
| H A D | ip_set_hash_ipmark.c | 41 __u32 mark; member 52 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 89 e.mark = skb->mark; in hash_ipmark4_kadt() 90 e.mark &= h->markmask; in hash_ipmark4_kadt() 123 e.mark &= h->markmask; in hash_ipmark4_uadt() 124 if (e.mark == 0 && e.ip == 0) in hash_ipmark4_uadt() 173 __u32 mark; member 184 ip1->mark == ip2->mark; in hash_ipmark6_data_equal() 224 e.mark = skb->mark; in hash_ipmark6_kadt() 225 e.mark &= h->markmask; in hash_ipmark6_kadt() [all …]
|
| /linux-6.15/net/netfilter/ |
| H A 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 …]
|
| H A 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()
|
| H A 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.15/lib/ |
| H A D | xarray.c | 93 xa_mark_t mark) in node_set_mark() argument 100 xa_mark_t mark) in node_clear_mark() argument 116 mark = (__force xa_mark_t)((__force unsigned)(mark) + 1); \ 128 xa_mark_t mark = 0; in xas_squash_marks() local 140 mark_inc(mark); in xas_squash_marks() 612 mark_inc(mark); in xas_expand() 949 xa_mark_t mark = 0; in xas_init_marks() local 958 mark_inc(mark); in xas_init_marks() 974 mark_inc(mark); in node_get_marks() 981 xa_mark_t mark) in node_mark_slots() argument [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_ldsx_insn.c | 96 old_mark = skb->mark; in _tc() 98 skb->mark = 0xf6fe; in _tc() 109 [off_mark]"i"(offsetof(struct __sk_buff, mark) in _tc() 111 + sizeof(skb->mark) - 1 in _tc() 116 tmp_mark = (char)skb->mark; in _tc() 120 skb->mark = old_mark; in _tc()
|
| H A D | mptcp_subflow.c | 25 __u32 init = 1, key, mark, *cnt; in mptcp_subflow() local 46 mark = *cnt; in mptcp_subflow() 50 mark = init; in mptcp_subflow() 54 err = bpf_setsockopt(skops, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)); in mptcp_subflow() 57 if (mark == 2) in mptcp_subflow()
|
| H A D | preempt_lock.c | 184 if (ctx->mark) in preempt_global_sleepable_helper_subprog() 185 global_sleepable_helper_subprog(ctx->mark); in preempt_global_sleepable_helper_subprog() 195 if (ctx->mark) in preempt_global_sleepable_kfunc_subprog() 196 global_sleepable_kfunc_subprog(ctx->mark); in preempt_global_sleepable_kfunc_subprog() 206 if (ctx->mark) in preempt_global_sleepable_subprog_indirect() 207 global_subprog_calling_sleepable_global(ctx->mark); in preempt_global_sleepable_subprog_indirect()
|
| H A D | test_spin_lock_fail.c | 211 return ret + ctx->mark; in global_subprog() 230 if (ctx->mark == 42) in lock_global_subprog_call1() 242 if (ctx->mark == 42) in lock_global_subprog_call2() 287 if (ctx->mark == 42) in lock_global_sleepable_helper_subprog() 288 ret = global_sleepable_helper_subprog(ctx->mark); in lock_global_sleepable_helper_subprog() 299 if (ctx->mark == 42) in lock_global_sleepable_kfunc_subprog() 300 ret = global_sleepable_kfunc_subprog(ctx->mark); in lock_global_sleepable_kfunc_subprog() 311 if (ctx->mark == 42) in lock_global_sleepable_subprog_indirect() 312 ret = global_subprog_calling_sleepable_global(ctx->mark); in lock_global_sleepable_subprog_indirect()
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A 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.15/samples/bpf/ |
| H A D | xdp2skb_meta_kern.c | 28 __u32 mark; member 57 meta->mark = 42; in _xdp_mark() 71 ctx->mark = 41; in _tc_mark() 77 ctx->mark = meta->mark; /* Transfer XDP-mark to SKB-mark */ in _tc_mark()
|
| /linux-6.15/drivers/media/usb/dvb-usb/ |
| H A 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.15/net/ipv6/ |
| H A 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.15/net/ipv4/ |
| H A 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.15/drivers/dma/sh/ |
| H A D | shdma-base.c | 96 chunk->mark = DESC_SUBMITTED; in shdma_tx_submit() 240 desc->mark = DESC_IDLE; in shdma_alloc_chan_resources() 367 desc->mark = DESC_WAITING; in __ld_cleanup() 379 desc->mark = DESC_WAITING; in __ld_cleanup() 383 switch (desc->mark) { in __ld_cleanup() 385 desc->mark = DESC_WAITING; in __ld_cleanup() 402 desc->mark = DESC_IDLE; in __ld_cleanup() 406 desc->mark = DESC_SUBMITTED; in __ld_cleanup() 536 new->mark = DESC_PREPARED; in shdma_add_desc() 631 new->mark = DESC_IDLE; in shdma_prep_sg() [all …]
|
| /linux-6.15/include/net/tc_act/ |
| H A 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()
|