| /linux/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 95 fsnotify_get_mark(struct fsnotify_mark * mark) fsnotify_get_mark() argument 250 struct fsnotify_mark *mark; __fsnotify_recalc_mask() local 403 fsnotify_final_mark_destroy(struct fsnotify_mark * mark) fsnotify_final_mark_destroy() argument 424 fsnotify_put_mark(struct fsnotify_mark * mark) fsnotify_put_mark() argument 491 fsnotify_get_mark_safe(struct fsnotify_mark * mark) fsnotify_get_mark_safe() argument 512 fsnotify_put_mark_wake(struct fsnotify_mark * mark) fsnotify_put_mark_wake() argument 533 struct fsnotify_mark *mark = iter_info->marks[type]; fsnotify_prepare_user_wait() local 582 fsnotify_detach_mark(struct fsnotify_mark * mark) fsnotify_detach_mark() argument 611 fsnotify_free_mark(struct fsnotify_mark * mark) fsnotify_free_mark() argument 633 fsnotify_destroy_mark(struct fsnotify_mark * mark,struct fsnotify_group * group) fsnotify_destroy_mark() argument 864 fsnotify_add_mark_list(struct fsnotify_mark * mark,void * obj,unsigned int obj_type,int add_flags) fsnotify_add_mark_list() argument 946 fsnotify_add_mark_locked(struct fsnotify_mark * mark,void * obj,unsigned int obj_type,int add_flags) fsnotify_add_mark_locked() argument 986 fsnotify_add_mark(struct fsnotify_mark * mark,void * obj,unsigned int obj_type,int add_flags) fsnotify_add_mark() argument 1008 struct fsnotify_mark *mark; fsnotify_find_mark() local 1034 struct fsnotify_mark *lmark, *mark; fsnotify_clear_marks_by_group() local 1079 struct fsnotify_mark *mark, *old_mark = NULL; fsnotify_destroy_marks() local 1117 fsnotify_init_mark(struct fsnotify_mark * mark,struct fsnotify_group * group) fsnotify_init_mark() argument 1135 struct fsnotify_mark *mark, *next; fsnotify_mark_destroy_workfn() local [all...] |
| H A D | fsnotify.c | 271 /* Check interest of this mark in case event was sent with two marks */ in fsnotify_handle_inode_event() 343 struct fsnotify_mark *mark; in send_to_group() 351 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 352 if (!(mark->flags & in send_to_group() 354 mark->ignore_mask = 0; in send_to_group() 359 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group() 360 group = mark->group; in send_to_group() 361 marks_mask |= mark->mask; in send_to_group() 363 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group() 394 struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) in fsnotify_next_mark() 340 struct fsnotify_mark *mark; send_to_group() local 391 fsnotify_next_mark(struct fsnotify_mark * mark) fsnotify_next_mark() argument 412 struct fsnotify_mark *mark; fsnotify_iter_select_report_types() local 456 struct fsnotify_mark *mark; fsnotify_iter_next() local [all...] |
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_wrr.c | 107 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local 110 * Allocate the mark variable for WRR scheduling in ip_vs_wrr_init_svc() 112 mark = kmalloc_obj(struct ip_vs_wrr_mark); in ip_vs_wrr_init_svc() 113 if (mark == NULL) in ip_vs_wrr_init_svc() 116 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 117 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 118 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 119 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 120 svc->sched_data = mark; in ip_vs_wrr_init_svc() 128 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc() local [all …]
|
| /linux/kernel/ |
| H A D | audit_tree.c | 28 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 77 * chunk is refcounted by embedded .refs. Mark associated with the chunk holds 78 * one chunk reference. This reference is dropped either when a mark is going 80 * mark get 163 audit_mark(struct fsnotify_mark * mark) audit_mark() argument 168 mark_chunk(struct fsnotify_mark * mark) mark_chunk() argument 173 audit_tree_destroy_watch(struct fsnotify_mark * mark) audit_tree_destroy_watch() argument 281 replace_mark_chunk(struct fsnotify_mark * mark,struct audit_chunk * chunk) replace_mark_chunk() argument 351 untag_chunk(struct audit_chunk * chunk,struct fsnotify_mark * mark) untag_chunk() argument 401 struct fsnotify_mark *mark; create_chunk() local 462 struct fsnotify_mark *mark; tag_chunk() local 577 struct fsnotify_mark *mark; prune_tree_chunks() local 1042 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 1049 audit_tree_freeing_mark(struct fsnotify_mark * mark,struct fsnotify_group * group) audit_tree_freeing_mark() argument [all...] |
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | skbedit.json | 4 "name": "Add skbedit action with valid mark", 20 "cmdUnderTest": "$TC actions add action skbedit mark 1", 23 "matchPattern": "action order [0-9]*: skbedit mark 1", 31 "name": "Add skbedit action with 32-bit maximum mark", 47 "cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1", 50 "matchPattern": "action order [0-9]*: skbedit mark 4294967295.*pipe.*index 1", 58 "name": "Add skbedit action with mark exceeding 32-bit maximum", 74 "cmdUnderTest": "$TC actions add action skbedit mark 666777888999", 77 "matchPattern": "action order [0-9]*: skbedit mark", 83 "name": "Add skbedit action with valid mark and mask", [all …]
|
| H A D | ife.json | 4 "name": "Create valid ife encode action with mark and pass control", 20 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2", 23 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2", 31 "name": "Create valid ife encode action with mark and pipe control", 47 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2", 50 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2", 58 "name": "Create valid ife encode action with mark and continue control", 74 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2", 77 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*index 2", 85 "name": "Create valid ife encode action with mark an 1369 "mark": 22, global() number [all...] |
| /linux/net/bridge/netfilter/ |
| H A D | ebt_mark.c | 12 /* The mark target can be used in any chain, 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() 84 .name = "mark", 110 MODULE_DESCRIPTION("Ebtables: Packet mark modification");
|
| 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() 98 MODULE_DESCRIPTION("Ebtables: Packet mark match");
|
| /linux/include/linux/ |
| H A D | fsnotify_backend.h | 67 * Set on inode mark that cares about things that happen to its children. 111 * It may include events that can be sent to an inode/sb/mount mark, but cannot 156 * @mark: mark to notify 167 * freeing_mark - called when a mark is being destroyed for some reason. The group 168 * MUST be holding a reference on each mark and that reference must be 177 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask, 181 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); 184 void (*free_mark)(struct fsnotify_mark *mark); 285 * evictable marks of the same group that is allocating a new mark 531 fsnotify_foreach_iter_mark_type(iter,mark,type) global() argument 779 fsnotify_ignore_mask(struct fsnotify_mark * mark) fsnotify_ignore_mask() argument 800 fsnotify_ignored_events(struct fsnotify_mark * mark) fsnotify_ignored_events() argument 828 fsnotify_effective_ignore_mask(struct fsnotify_mark * mark,bool is_dir,int iter_type) fsnotify_effective_ignore_mask() argument 848 fsnotify_calc_mask(struct fsnotify_mark * mark) fsnotify_calc_mask() argument 882 fsnotify_add_inode_mark(struct fsnotify_mark * mark,struct inode * inode,int add_flags) fsnotify_add_inode_mark() argument 889 fsnotify_add_inode_mark_locked(struct fsnotify_mark * mark,struct inode * inode,int add_flags) fsnotify_add_inode_mark_locked() argument [all...] |
| /linux/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 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() [all …]
|
| /linux/drivers/tty/vt/ |
| H A D | ucs_width_table.h_shipped | 28 { BMP_0WIDTH(0x05C4, 0x05C5) }, /* HEBREW MARK UPPER DOT - HEBREW MARK LOWER DOT */ 30 { BMP_0WIDTH(0x0600, 0x0605) }, /* ARABIC NUMBER SIGN - ARABIC NUMBER MARK ABOVE */ 32 { BMP_0WIDTH(0x061C, 0x061C) }, /* ARABIC LETTER MARK */ 39 { BMP_0WIDTH(0x070F, 0x070F) }, /* SYRIAC ABBREVIATION MARK */ 45 { BMP_0WIDTH(0x0816, 0x0819) }, /* SAMARITAN MARK IN - SAMARITAN MARK DAGESH */ 46 { BMP_0WIDTH(0x081B, 0x0823) }, /* SAMARITAN MARK EPENTHETIC YUT - SAMARITAN VOWEL SIGN A */ 48 { BMP_0WIDTH(0x0829, 0x082D) }, /* SAMARITAN VOWEL SIGN LONG I - SAMARITAN MARK NEQUDAA */ 49 { BMP_0WIDTH(0x0859, 0x085B) }, /* MANDAIC AFFRICATION MARK [all...] |
| H A D | ucs.c | 142 * Structure for base with combining mark pairs and resulting recompositions. 147 u16 mark; /* combining mark */ in ucs_recompose() 155 u16 mark; in ucs_recompose() 170 if (search_key->mark < entry->mark) 172 if (search_key->mark > entry->mark) 182 * @mark: Combining mark Unicod in ucs_page_desc_cmp() 105 u16 mark; /* combining mark */ global() member 113 u16 mark; global() member 144 ucs_recompose(u32 base,u32 mark) ucs_recompose() argument [all...] |
| /linux/lib/ |
| H A D | xarray.c | 25 * @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 unsigned int offset, xa_mark_t mark) in node_get_mark() argument [all …]
|
| /linux/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 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() 97 iptables -I INPUT -p icmp -m mark --mark 41 # == 0x29 98 iptables -I INPUT -p icmp -m mark --mark 42 # == 0x2a
|
| /linux/net/netfilter/ |
| H A D | xt_mark.c | 18 MODULE_DESCRIPTION("Xtables: packet mark operations"); 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() 44 .name = "MARK", 53 .name = "MARK", 63 .name = "MARK", 74 .name = "mark", [all...] |
| H A D | xt_connmark.c | 19 MODULE_DESCRIPTION("Xtables: connection mark operations"); 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() [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 79 /* save source/dest address, mark, hoplimit, flowlabel, priority */ in nf_route_table_hook6() 82 mark = skb->mark; in nf_route_table_hook6() 92 skb->mark != mark || in nf_route_table_hook6()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fib_lookup.c | 30 #define MARK 42 macro 54 __u32 mark; member 111 { .desc = "IPv4 policy routing, mark doesn't point to a policy", 115 .mark = MARK_NO_POLICY, }, 116 { .desc = "IPv4 policy routing, mark points to a policy", 120 .mark = MARK, }, 121 { .desc = "IPv4 policy routing, mark points to a policy, but no flag", 125 .mark = MARK, }, 130 { .desc = "IPv6 policy routing, mark doesn't point to a policy", 134 .mark = MARK_NO_POLICY, }, [all …]
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | log-writes.rst | 77 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 …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | cmsg_so_mark.sh | 10 MARK=1000 30 ip -netns $NS rule add fwmark $MARK lookup 300 31 ip -6 -netns $NS rule add fwmark $MARK lookup 300 58 [ $ovr == "both" ] && m="-M $MARK -m" 60 ip netns exec $NS ./cmsg_sender -$i -p $p $m $((MARK + 1)) $TGT 1234 63 [ $ovr == "diff" ] && m="-M $((MARK + 1)) -m" 65 ip netns exec $NS ./cmsg_sender -$i -p $p $m $MARK -s $TGT 1234
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | test-mark.sh | 11 MARK=1056 42 ASYMM "${OVPN_UDP_PEERS_FILE}" "${MARK}" 75 ovpn_log "Adding an nftables drop rule based on mark value ${MARK}" 84 ovpn_cmd_ok "add nft drop rule for mark ${MARK}" \ 86 meta mark == "${MARK}" \ 163 ovpn_run_stage "install nft mark drop rule" ovpn_mark_add_drop_rule
|
| /linux/net/sched/ |
| H A D | act_meta_mark.c | 3 * net/sched/act_meta_mark.c IFE skb->mark metadata module 24 u32 ifemark = skb->mark; in skbmark_encode() 33 skb->mark = ntohl(ifemark); in skbmark_decode() 39 return ife_check_meta_u32(skb->mark, e); in skbmark_check() 46 .synopsis = "skb mark 32 bit metadata", 71 MODULE_DESCRIPTION("Inter-FE skb mark metadata module");
|
| /linux/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/net/xfrm/ |
| H A D | xfrm_state.c | 1132 u32 mark, in __xfrm_state_lookup_all() argument 1165 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup_all() 1176 u32 mark, in __xfrm_state_lookup() argument 1191 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup() 1201 struct xfrm_state *xfrm_input_state_lookup(struct net *net, u32 mark, in xfrm_input_state_lookup() argument 1220 if ((mark in xfrm_input_state_lookup() 1249 __xfrm_state_lookup_byaddr(const struct xfrm_hash_state_ptrs * state_ptrs,u32 mark,const xfrm_address_t * daddr,const xfrm_address_t * saddr,u8 proto,unsigned short family) __xfrm_state_lookup_byaddr() argument 1279 u32 mark = x->mark.v & x->mark.m; __xfrm_state_locate() local 1362 u32 mark = pol->mark.v & pol->mark.m; xfrm_state_find() local 1646 xfrm_stateonly_find(struct net * net,u32 mark,u32 if_id,xfrm_address_t * daddr,xfrm_address_t * saddr,unsigned short family,u8 mode,u8 proto,u32 reqid) xfrm_stateonly_find() argument 1771 u32 mark = xnew->mark.v & xnew->mark.m; __xfrm_state_bump_genids() local 1810 u32 mark = m->v & m->m; __find_acq_core() local 1893 u32 mark = x->mark.v & x->mark.m; xfrm_state_add() local 2323 xfrm_state_lookup(struct net * net,u32 mark,const xfrm_address_t * daddr,__be32 spi,u8 proto,unsigned short family) xfrm_state_lookup() argument 2339 xfrm_state_lookup_byaddr(struct net * net,u32 mark,const xfrm_address_t * daddr,const xfrm_address_t * saddr,u8 proto,unsigned short family) xfrm_state_lookup_byaddr() argument 2357 xfrm_find_acq(struct net * net,const struct xfrm_mark * mark,u8 mode,u32 reqid,u32 if_id,u32 pcpu_num,u8 proto,const xfrm_address_t * daddr,const xfrm_address_t * saddr,int create,unsigned short family) xfrm_find_acq() argument 2502 __xfrm_find_acq_byseq(struct net * net,u32 mark,u32 seq,u32 pcpu_num) __xfrm_find_acq_byseq() argument 2520 xfrm_find_acq_byseq(struct net * net,u32 mark,u32 seq,u32 pcpu_num) xfrm_find_acq_byseq() argument [all...] |
| /linux/drivers/dma/sh/ |
| H A D | shdma-base.c | 64 if (sdesc->mark == DESC_SUBMITTED) { in shdma_chan_xfer_ld_queue() 85 /* Mark all chunks of this descriptor as submitted, move to the queue */ in shdma_tx_submit() 91 if (chunk != desc && (chunk->mark == DESC_IDLE || in shdma_tx_submit() 96 chunk->mark = DESC_SUBMITTED; in shdma_tx_submit() 137 /* Remove chunks from the queue and mark them as idle */ in shdma_tx_submit() 140 chunk->mark = DESC_IDLE; in shdma_tx_submit() 175 if (sdesc->mark != DESC_PREPARED) { in shdma_get_desc() 176 BUG_ON(sdesc->mark != DESC_IDLE); in shdma_get_desc() 253 desc->mark = DESC_IDLE; in shdma_alloc_chan_resources() 353 BUG_ON(desc->mark != DESC_SUBMITTED && in __ld_cleanup() [all …]
|