Home
last modified time | relevance | path

Searched refs:mark (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c108 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/kernel/
H A Daudit_fsnotify.c30 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 …]
H A Daudit_tree.c28 struct fsnotify_mark *mark; member
41 struct fsnotify_mark mark; member
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) audit_mark() argument
166 mark_chunk(struct fsnotify_mark * mark) mark_chunk() argument
171 audit_tree_destroy_watch(struct fsnotify_mark * mark) audit_tree_destroy_watch() argument
279 replace_mark_chunk(struct fsnotify_mark * mark,struct audit_chunk * chunk) replace_mark_chunk() argument
349 untag_chunk(struct audit_chunk * chunk,struct fsnotify_mark * mark) untag_chunk() argument
399 struct fsnotify_mark *mark; create_chunk() local
460 struct fsnotify_mark *mark; tag_chunk() local
575 struct fsnotify_mark *mark; prune_tree_chunks() 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) audit_tree_handle_event() argument
1042 audit_tree_freeing_mark(struct fsnotify_mark * mark,struct fsnotify_group * group) audit_tree_freeing_mark() argument
[all...]
H A Daudit_watch.c48 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_grou in audit_remove_parent_watches()
524 audit_exe_compare(struct task_struct * tsk,struct audit_fsnotify_mark * mark) audit_exe_compare() argument
[all...]
/linux/net/bridge/netfilter/
H A Debt_mark.c29 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 Debt_mark_m.c22 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/net/netfilter/ipset/
H A Dip_set_hash_ipmark.c41 __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/lib/
H A Dxarray.c25 * @mark is an xa_mark_t; a small number indicating one of the mark bits.
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 node_get_mark(struct xa_node * node,unsigned int offset,xa_mark_t mark) node_get_mark() argument
93 node_set_mark(struct xa_node * node,unsigned int offset,xa_mark_t mark) node_set_mark() argument
100 node_clear_mark(struct xa_node * node,unsigned int offset,xa_mark_t mark) node_clear_mark() argument
105 node_any_mark(struct xa_node * node,xa_mark_t mark) node_any_mark() argument
110 node_mark_all(struct xa_node * node,xa_mark_t mark) node_mark_all() argument
115 mark_inc(mark) global() argument
128 unsigned int mark = 0; xas_squash_marks() local
579 xa_mark_t mark = 0; xas_expand() local
857 xas_get_mark(const struct xa_state * xas,xa_mark_t mark) xas_get_mark() argument
876 xas_set_mark(const struct xa_state * xas,xa_mark_t mark) xas_set_mark() argument
905 xas_clear_mark(const struct xa_state * xas,xa_mark_t mark) xas_clear_mark() argument
941 xa_mark_t mark = 0; xas_init_marks() local
959 xa_mark_t mark = XA_MARK_0; node_get_marks() local
973 node_mark_slots(struct xa_node * node,unsigned int sibs,xa_mark_t mark) node_mark_slots() argument
989 xa_mark_t mark = XA_MARK_0; node_set_marks() local
1321 xas_find_marked(struct xa_state * xas,unsigned long max,xa_mark_t mark) xas_find_marked() argument
1919 __xa_set_mark(struct xarray * xa,unsigned long index,xa_mark_t mark) __xa_set_mark() argument
1937 __xa_clear_mark(struct xarray * xa,unsigned long index,xa_mark_t mark) __xa_clear_mark() argument
1959 xa_get_mark(struct xarray * xa,unsigned long index,xa_mark_t mark) xa_get_mark() argument
1989 xa_set_mark(struct xarray * xa,unsigned long index,xa_mark_t mark) xa_set_mark() argument
2007 xa_clear_mark(struct xarray * xa,unsigned long index,xa_mark_t mark) xa_clear_mark() argument
2133 xas_extract_marked(struct xa_state * xas,void ** dst,unsigned long max,unsigned int n,xa_mark_t mark) xas_extract_marked() argument
[all...]
/linux/net/netfilter/
H A Dxt_connmark.c41 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 Dnft_chain_route.c24 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 Dxt_mark.c30 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/arch/powerpc/kernel/
H A Dsmp-tbsync.c26 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/tools/testing/selftests/bpf/progs/
H A Dtest_ldsx_insn.c96 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 Dverifier_unpriv.c367 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in fill_of_different_pointers_stx()
393 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in fill_of_different_pointers_st()
395 BPF_ST_MEM(BPF_W, BPF_REG_1, offsetof(struct __sk_buff, mark), 42)) in fill_of_different_pointers_st()
433 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in pointers_stx_ctx_and_sock()
469 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in different_pointers_stx_leak_sock()
506 __imm_const(bpf_sock_mark, offsetof(struct bpf_sock, mark)), in stx_sock_and_ctx_read()
546 __imm_const(bpf_sock_mark, offsetof(struct bpf_sock, mark)), in stx_sock_and_ctx_write()
H A Dtest_lwt_reroute.c20 if (skb->mark != 0) in test_lwt_reroute()
27 skb->mark = bpf_ntohl(iph->daddr) & 0xff; in test_lwt_reroute()
30 if (skb->mark == 0) in test_lwt_reroute()
/linux/drivers/media/usb/dvb-usb/
H A Daf9005-remote.c76 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/net/ipv4/
H A Dipcomp.c42 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/net/ipv6/
H A Dipcomp6.c59 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/include/net/tc_act/
H A Dtc_skbedit.h17 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/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.sh55 ip netns exec $ns $t -A OUTPUT -p tcp --syn -m mark --mark $m -j ACCEPT
58 ip netns exec $ns $t -A OUTPUT -p tcp --tcp-flags RST RST -m mark --mark 0 -j ACCEPT
60 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark $m -j ACCEPT
61 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark 0 -j DROP
/linux/net/ipv4/netfilter/
H A Diptable_mangle.c42 u32 mark; in ipt_mangle_out() local
47 mark = skb->mark; in ipt_mangle_out()
61 skb->mark != mark || in ipt_mangle_out()
/linux/net/ipv6/netfilter/
H A Dip6table_mangle.c36 u32 flowlabel, mark; in ip6t_mangle_out() local
43 mark = skb->mark; in ip6t_mangle_out()
55 skb->mark != mark || in ip6t_mangle_out()
/linux/drivers/macintosh/
H A Drack-meter.c44 u32 mark ____cacheline_aligned;
158 rm->dma_buf_v->mark = 0; in rackmeter_do_pause()
175 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
186 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
199 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
327 unsigned int mark, i; in rackmeter_irq() local
340 mark = db->mark; in rackmeter_irq()
341 if (mark != 1 && mark != 2) { in rackmeter_irq()
343 mark); in rackmeter_irq()
354 buf = mark == 1 ? db->buf1 : db->buf2; in rackmeter_irq()
/linux/drivers/net/ethernet/sfc/
H A Dtc_counters.c326 u32 mark) in efx_tc_counter_update() argument
345 if ((s32)mark - (s32)cnt->gen < 0) { in efx_tc_counter_update()
357 cnt->gen = mark; in efx_tc_counter_update()
369 static void efx_tc_rx_version_1(struct efx_nic *efx, const u8 *data, u32 mark) in efx_tc_rx_version_1() argument
396 packet_count, byte_count, mark); in efx_tc_rx_version_1()
427 const u8 *data, u32 mark) in efx_tc_rx_version_2() argument
501 byte_count, mark); in efx_tc_rx_version_2()
510 static bool efx_tc_rx(struct efx_rx_queue *rx_queue, u32 mark) in efx_tc_rx() argument
525 efx_tc_rx_version_1(efx, data, mark); in efx_tc_rx()
528 type = efx_tc_rx_version_2(efx, data, mark); in efx_tc_rx()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Dlog-writes.rst77 mark <description>
79 You can use a dmsetup message to set an arbitrary mark in a log.
86 dmsetup message log 0 mark mkfs
89 This would allow you to replay the log up to the mkfs mark and
93 Every log has a mark at the end labeled "dm-log-writes-end".
110 dmsetup message log 0 mark mkfs
114 dmsetup message log 0 mark fsync
119 replay-log --log /dev/sdc --replay /dev/sdb --end-mark fsync
130 dmsetup message log 0 mark mkfs
138 replay-log --log /dev/sdc --replay /dev/sdb --end-mark mkfs
[all …]

12345678910>>...17