Lines Matching +full:enum +full:- +full:as +full:- +full:flags

1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
12 * License as published by the Free Software Foundation;
64 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
75 * -EAGAIN. This field determines how many attempts libbpf has to
80 enum bpf_attach_type expected_attach_type;
120 LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
125 /* Flags to direct loading requirements */
155 __u64 flags);
159 __u64 flags);
163 void *value, __u64 flags);
165 LIBBPF_API int bpf_map_delete_elem_flags(int fd, const void *key, __u64 flags);
172 __u64 flags;
174 #define bpf_map_batch_opts__last_field flags
185 * on output if a non-EFAULT error is returned, **count** represents the number of deleted
200 * read. *out_batch* is an output parameter that should be passed as *in_batch*
216 * @param out_batch output parameter that should be passed to next call as *in_batch*
222 * If a non-EFAULT error is returned, count will be set as the number of elements
243 * @param out_batch output parameter that should be passed to next call as *in_batch*
249 * If a non-**EFAULT** error code is returned and if the output **count** value
272 * In particular the *flags* parameter of *bpf_map_batch_opts* can be
289 * Update spin_lock-ed map elements. This must be
296 * in the map to update in batch; on output if a non-EFAULT error is returned,
337 enum bpf_attach_type type, unsigned int flags);
338 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
340 enum bpf_attach_type type);
344 __u32 flags;
358 __u32 flags;
379 enum bpf_attach_type type,
395 enum bpf_attach_type type,
398 union bpf_iter_link_info; /* defined in up-to-date linux/bpf.h */
401 __u32 flags;
410 __u32 flags;
417 __u32 flags;
432 __u32 flags;
455 enum bpf_attach_type attach_type,
462 __u32 flags; /* extra flags */
523 * zero-initialized or initialized as expected by the requested *info*
524 * type. Failing to (zero-)initialize *info* under certain circumstances can
543 * zero-initialized or initialized as expected by the requested *info*
544 * type. Failing to (zero-)initialize *info* under certain circumstances can
563 * zero-initialized or initialized as expected by the requested *info*
564 * type. Failing to (zero-)initialize *info* under certain circumstances can
583 * zero-initialized or initialized as expected by the requested *info*
584 * type. Failing to (zero-)initialize *info* under certain circumstances can
626 LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type,
628 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
642 LIBBPF_API int bpf_task_fd_query(int pid, int fd, __u32 flags, char *buf,
647 /* forward-declaring enums in C++ isn't compatible with pure C enums, so
648 * instead define bpf_enable_stats() as accepting int as an input
652 enum bpf_stats_type; /* defined in up-to-date linux/bpf.h */
653 LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type);
658 __u32 flags;
660 #define bpf_prog_bind_opts__last_field flags
682 __u32 flags;
693 __u32 flags;
696 #define bpf_token_create_opts__last_field flags