Lines Matching refs:flags
62 * *map* with *value*. *flags* is one of:
78 static long (*bpf_map_update_elem)(void *map, const void *key, const void *value, __u64 flags) = (void *) 2;
212 * associated to *skb*, at *offset*. *flags* are a combination of
227 static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
266 * four bits of *flags*. Alternatively, it is possible to store
269 * bits of *flags* to 0. For both methods, *offset* indicates the
271 * the size of the field, *flags* can be added (bitwise OR) actual
272 * flags. With **BPF_F_MARK_MANGLED_0**, a null checksum is left
292 static long (*bpf_l4_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 flags) = (void *) 11;
335 * value in *flags* is used to make the distinction (ingress path
357 static long (*bpf_clone_redirect)(struct __sk_buff *skb, __u32 ifindex, __u64 flags) = (void *) 13;
470 * The *flags* can be set to **BPF_F_TUNINFO_IPV6**, which
517 static long (*bpf_skb_get_tunnel_key)(struct __sk_buff *skb, struct bpf_tunnel_key *key, __u32 size, __u64 flags) = (void *) 20;
524 * *flags* can be set to a combination of the following values:
561 static long (*bpf_skb_set_tunnel_key)(struct __sk_buff *skb, struct bpf_tunnel_key *key, __u32 size, __u64 flags) = (void *) 21;
572 * *flags*, that contains the index of the CPU to look up, masked
573 * with **BPF_F_INDEX_MASK**. Alternatively, *flags* can be set to
594 static __u64 (*bpf_perf_event_read)(void *map, __u64 flags) = (void *) 22;
605 * for redirection. The **BPF_F_INGRESS** value in *flags* is used
621 static long (*bpf_redirect)(__u32 ifindex, __u64 flags) = (void *) 23;
660 * The *flags* are used to indicate the index in *map* for which
662 * Alternatively, *flags* can be set to **BPF_F_CURRENT_CPU**
698 static long (*bpf_perf_event_output)(void *ctx, void *map, __u64 flags, void *data, __u64 size) = (void *) 25;
729 * The last argument, *flags*, holds the number of stack frames to
732 * a combination of the following flags:
765 static long (*bpf_get_stackid)(void *ctx, void *map, __u64 flags) = (void *) 27;
851 * All values for *flags* are reserved for future usage, and must
863 static long (*bpf_skb_change_proto)(struct __sk_buff *skb, __be16 proto, __u64 flags) = (void *) 31;
984 * new *len*. The *flags* are reserved for future usage, and must
1006 static long (*bpf_skb_change_tail)(struct __sk_buff *skb, __u32 len, __u64 flags) = (void *) 38;
1105 * All values for *flags* are reserved for future usage, and must
1117 static long (*bpf_skb_change_head)(struct __sk_buff *skb, __u32 len, __u64 flags) = (void *) 43;
1260 * The following flags are supported at this time:
1272 * Use with ENCAP_L3 flags to further specify the tunnel type.
1275 * Use with ENCAP_L3/L4 flags to further specify the tunnel
1296 static long (*bpf_skb_adjust_room)(struct __sk_buff *skb, __s32 len_diff, __u32 mode, __u64 flags) = (void *) 50;
1308 * The lower two bits of *flags* are used as the return code if
1311 * by the caller. The higher bits of *flags* can be set to
1323 * of the *flags* argument on error.
1325 static long (*bpf_redirect_map)(void *map, __u64 key, __u64 flags) = (void *) 51;
1333 * **BPF_F_INGRESS** value in *flags* is used to make the
1340 static long (*bpf_sk_redirect_map)(struct __sk_buff *skb, void *map, __u32 key, __u64 flags) = (void *) 52;
1347 * *key*. *flags* is one of:
1363 static long (*bpf_sock_map_update)(struct bpf_sock_ops *skops, void *map, void *key, __u64 flags) = (void *) 53;
1407 * CPU. The value to retrieve is indicated by *flags*, that
1409 * **BPF_F_INDEX_MASK**. Alternatively, *flags* can be set to
1450 static long (*bpf_perf_event_read_value)(void *map, __u64 flags, struct bpf_perf_event_value *buf, __u32 buf_size) = (void *) 55;
1540 * *argval* is a flag array which can combine these flags:
1580 * **BPF_F_INGRESS** value in *flags* is used to make the
1587 static long (*bpf_msg_redirect_map)(struct sk_msg_md *msg, void *map, __u32 key, __u64 flags) = (void *) 60;
1676 * All values for *flags* are reserved for future usage, and must
1682 static long (*bpf_msg_pull_data)(struct sk_msg_md *msg, __u32 start, __u32 end, __u64 flags) = (void *) 63;
1733 * All values for *flags* are reserved for future usage, and must
1742 static long (*bpf_skb_get_xfrm_state)(struct __sk_buff *skb, __u32 index, struct bpf_xfrm_state *xfrm_state, __u32 size, __u64 flags) = (void *) 66;
1753 * The last argument, *flags*, holds the number of stack frames to
1756 * the following flags:
1789 static long (*bpf_get_stack)(void *ctx, void *buf, __u32 size, __u64 flags) = (void *) 67;
1831 * *flags* argument can be a combination of one or more of the
1867 static long (*bpf_fib_lookup)(void *ctx, struct bpf_fib_lookup *params, int plen, __u32 flags) = (void *) 69;
1874 * *key*. *flags* is one of:
1890 static long (*bpf_sock_hash_update)(struct bpf_sock_ops *skops, void *map, void *key, __u64 flags) = (void *) 70;
1901 * **BPF_F_INGRESS** value in *flags* is used to make the
1908 static long (*bpf_msg_redirect_hash)(struct sk_msg_md *msg, void *map, void *key, __u64 flags) = (void *) 71;
1919 * **BPF_F_INGRESS** value in *flags* is used to make the
1926 static long (*bpf_sk_redirect_hash)(struct __sk_buff *skb, void *map, void *key, __u64 flags) = (void *) 72;
1973 * associated to *skb*, at *offset*. Only the flags, tag and TLVs
2132 * The *flags* meaning is specific for each map type,
2146 static void *(*bpf_get_local_storage)(void *map, __u64 flags) = (void *) 81;
2159 static long (*bpf_sk_select_reuseport)(struct sk_reuseport_md *reuse, void *map, void *key, __u64 flags) = (void *) 82;
2210 * All values for *flags* are reserved for future usage, and must
2222 static struct bpf_sock *(*bpf_sk_lookup_tcp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 tuple_size, __u64 netns, __u64 flags) = (void *) 84;
2251 * All values for *flags* are reserved for future usage, and must
2263 static struct bpf_sock *(*bpf_sk_lookup_udp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 tuple_size, __u64 netns, __u64 flags) = (void *) 85;
2280 * Push an element *value* in *map*. *flags* is one of:
2289 static long (*bpf_map_push_elem)(void *map, const void *value, __u64 flags) = (void *) 87;
2329 static long (*bpf_msg_push_data)(struct sk_msg_md *msg, __u32 start, __u32 len, __u64 flags) = (void *) 90;
2345 static long (*bpf_msg_pop_data)(struct sk_msg_md *msg, __u32 start, __u32 len, __u64 flags) = (void *) 91;
2499 static struct bpf_sock *(*bpf_skc_lookup_tcp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 tuple_size, __u64 netns, __u64 flags) = (void *) 99;
2529 * If *flags* is zero, full name (e.g. "net/ipv4/tcp_mem") is
2539 static long (*bpf_sysctl_get_name)(struct bpf_sysctl *ctx, char *buf, unsigned long buf_len, __u64 flags) = (void *) 101;
2617 * Five least significant bits of *flags* encode base, other bits
2632 static long (*bpf_strtol)(const char *buf, unsigned long buf_len, __u64 flags, long *res) = (void *) 105;
2644 * Five least significant bits of *flags* encode base, other bits
2659 static long (*bpf_strtoul)(const char *buf, unsigned long buf_len, __u64 flags, unsigned long *res) = (void *) 106;
2681 * An optional *flags* (**BPF_SK_STORAGE_GET_F_CREATE**) can be
2694 static void *(*bpf_sk_storage_get)(void *map, void *sk, void *value, __u64 flags) = (void *) 107;
2768 * The *flags* are used to indicate the index in *map* for which
2770 * Alternatively, *flags* can be set to **BPF_F_CURRENT_CPU**
2785 static long (*bpf_skb_output)(void *ctx, void *map, __u64 flags, void *data, __u64 size) = (void *) 111;
2920 * The *flags* can be set to **BPF_F_GET_BRANCH_RECORDS_SIZE** to
2929 static long (*bpf_read_branch_records)(struct bpf_perf_event_data *ctx, void *buf, __u32 size, __u64 flags) = (void *) 119;
2956 * The *flags* are used to indicate the index in *map* for which
2958 * Alternatively, *flags* can be set to **BPF_F_CURRENT_CPU**
2973 static long (*bpf_xdp_output)(void *ctx, void *map, __u64 flags, void *data, __u64 size) = (void *) 121;
3030 * The *flags* argument must be zero.
3035 * **-EINVAL** if specified *flags* are not supported.
3044 static long (*bpf_sk_assign)(void *ctx, void *sk, __u64 flags) = (void *) 124;
3149 * If **BPF_RB_NO_WAKEUP** is specified in *flags*, no notification
3151 * If **BPF_RB_FORCE_WAKEUP** is specified in *flags*, notification
3153 * If **0** is specified in *flags*, an adaptive notification
3164 static long (*bpf_ringbuf_output)(void *ringbuf, void *data, __u64 size, __u64 flags) = (void *) 130;
3170 * *flags* must be 0.
3176 static void *(*bpf_ringbuf_reserve)(void *ringbuf, __u64 size, __u64 flags) = (void *) 131;
3182 * If **BPF_RB_NO_WAKEUP** is specified in *flags*, no notification
3184 * If **BPF_RB_FORCE_WAKEUP** is specified in *flags*, notification
3186 * If **0** is specified in *flags*, an adaptive notification
3194 static void (*bpf_ringbuf_submit)(void *data, __u64 flags) = (void *) 132;
3200 * If **BPF_RB_NO_WAKEUP** is specified in *flags*, no notification
3202 * If **BPF_RB_FORCE_WAKEUP** is specified in *flags*, notification
3204 * If **0** is specified in *flags*, an adaptive notification
3212 static void (*bpf_ringbuf_discard)(void *data, __u64 flags) = (void *) 133;
3218 * exactly is queries is determined by *flags*:
3231 * Requested value, or 0, if *flags* are not recognized.
3233 static __u64 (*bpf_ringbuf_query)(void *ringbuf, __u64 flags) = (void *) 134;
3331 * The last argument, *flags*, holds the number of stack frames to
3334 * the following flags:
3358 static long (*bpf_get_task_stack)(struct task_struct *task, void *buf, __u32 size, __u64 flags) = (void *) 141;
3366 * If *flags* is 0, it will search the option from the
3398 * Supported flags:
3425 static long (*bpf_load_hdr_opt)(struct bpf_sock_ops *skops, void *searchby_res, __u32 len, __u64 flags) = (void *) 142;
3462 static long (*bpf_store_hdr_opt)(struct bpf_sock_ops *skops, const void *from, __u32 len, __u64 flags) = (void *) 143;
3488 static long (*bpf_reserve_hdr_opt)(struct bpf_sock_ops *skops, __u32 len, __u64 flags) = (void *) 144;
3507 * An optional *flags* (**BPF_LOCAL_STORAGE_GET_F_CREATE**) can be
3520 static void *(*bpf_inode_storage_get)(void *map, void *inode, void *value, __u64 flags) = (void *) 145;
3580 * *flags* is a combination of
3599 static long (*bpf_snprintf_btf)(char *str, __u32 str_size, struct btf_ptr *ptr, __u32 btf_ptr_size, __u64 flags) = (void *) 149;
3606 * *flags* are identical to those used for bpf_snprintf_btf.
3611 static long (*bpf_seq_printf_btf)(struct seq_file *m, struct btf_ptr *ptr, __u32 ptr_size, __u64 flags) = (void *) 150;
3641 * The *flags* argument is reserved and must be 0. The helper is
3649 static long (*bpf_redirect_neigh)(__u32 ifindex, struct bpf_redir_neigh *params, int plen, __u64 flags) = (void *) 152;
3697 * The *flags* argument is reserved and must be 0. The helper is
3706 static long (*bpf_redirect_peer)(__u32 ifindex, __u64 flags) = (void *) 155;
3725 * An optional *flags* (**BPF_LOCAL_STORAGE_GET_F_CREATE**) can be
3738 static void *(*bpf_task_storage_get)(void *map, struct task_struct *task, void *value, __u64 flags) = (void *) 156;
3774 * **-EINVAL** if invalid *flags* are passed, zero otherwise.
3776 static long (*bpf_bprm_opts_set)(struct linux_binprm *bprm, __u64 flags) = (void *) 159;
3854 * The *flags* argument can be a combination of one or more of the
3887 static long (*bpf_check_mtu)(void *ctx, __u32 ifindex, __u32 *mtu_len, __s32 len_diff, __u64 flags) = (void *) 163;
3896 * The **flags** is used to control certain aspects of the helper.
3897 * Currently, the **flags** must be 0.
3918 * invalid **flags**.
3920 static long (*bpf_for_each_map_elem)(void *map, void *callback_fn, void *callback_ctx, __u64 flags) = (void *) 164;
3972 static long (*bpf_btf_find_by_name_kind)(char *name, int name_sz, __u32 kind, int flags) = (void *) 167;
3988 * First 4 bits of *flags* specify clockid.
3990 * All other bits of *flags* are reserved.
3997 * **-EINVAL** if invalid *flags* are passed.
4003 static long (*bpf_timer_init)(struct bpf_timer *timer, void *map, __u64 flags) = (void *) 169;
4042 * *flags* can be one of:
4054 * or invalid *flags* are passed.
4056 static long (*bpf_timer_start)(struct bpf_timer *timer, __u64 nsecs, __u64 flags) = (void *) 171;
4129 * *flags* is reserved for now and must be zero.
4136 * **-EINVAL** if *flags* is not zero.
4140 static long (*bpf_get_branch_snapshot)(void *entries, __u32 size, __u64 flags) = (void *) 176;
4175 * **-EINVAL** if *flags* is not zero.
4183 static long (*bpf_kallsyms_lookup_name)(const char *name, int name_sz, int flags, __u64 *res) = (void *) 179;
4192 * The *flags* is used to control certain aspects of the helper.
4193 * Currently, the *flags* must be 0.
4204 * **-EINVAL** for invalid **flags**.
4206 static long (*bpf_find_vma)(struct task_struct *task, __u64 addr, void *callback_fn, void *callback_ctx, __u64 flags) = (void *) 180;
4215 * The **flags** is used to control certain aspects of the helper.
4216 * Currently, the **flags** must be 0. Currently, nr_loops is
4231 * The number of loops performed, **-EINVAL** for invalid **flags**,
4234 static long (*bpf_loop)(__u32 nr_loops, void *callback_fn, void *callback_ctx, __u64 flags) = (void *) 181;
4362 * address space, and stores the data in *dst*. *flags* is not
4370 static long (*bpf_copy_from_user_task)(void *dst, __u32 size, const void *user_ptr, struct task_struct *tsk, __u64 flags) = (void *) 191;
4464 * *flags* is currently unused.
4468 * -EINVAL if flags is not 0.
4470 static long (*bpf_dynptr_from_mem)(void *data, __u32 size, __u64 flags, struct bpf_dynptr *ptr) = (void *) 197;
4476 * through the dynptr interface. *flags* must be 0.
4485 static long (*bpf_ringbuf_reserve_dynptr)(void *ringbuf, __u32 size, __u64 flags, struct bpf_dynptr *ptr) = (void *) 198;
4494 * For more information on *flags*, please see
4500 static void (*bpf_ringbuf_submit_dynptr)(struct bpf_dynptr *ptr, __u64 flags) = (void *) 199;
4508 * For more information on *flags*, please see
4514 static void (*bpf_ringbuf_discard_dynptr)(struct bpf_dynptr *ptr, __u64 flags) = (void *) 200;
4521 * *flags* is currently unused.
4526 * *flags* is not 0.
4528 static long (*bpf_dynptr_read)(void *dst, __u32 len, const struct bpf_dynptr *src, __u32 offset, __u64 flags) = (void *) 201;
4536 * *flags* must be 0 except for skb-type dynptrs.
4544 * * For *flags*, please see the flags accepted by
4550 * is a read-only dynptr or if *flags* is not correct. For skb-type dynptrs,
4553 static long (*bpf_dynptr_write)(const struct bpf_dynptr *dst, __u32 offset, void *src, __u32 len, __u64 flags) = (void *) 202;
4718 static long (*bpf_user_ringbuf_drain)(void *map, void *callback_fn, void *ctx, __u64 flags) = (void *) 209;
4739 * An optional *flags* (**BPF_LOCAL_STORAGE_GET_F_CREATE**) can be
4752 static void *(*bpf_cgrp_storage_get)(void *map, struct cgroup *cgroup, void *value, __u64 flags) = (void *) 210;