Libbpf userspace function bpf_prog_bind_map
Low level wrapper around the BPF_PROG_BIND_MAP
syscall command.
Definition
int bpf_prog_bind_map(int prog_fd, int map_fd, const struct bpf_prog_bind_opts *opts);
Parameters
prog_fd
: BPF program file descriptormap_fd
: BPF map file descriptoropts
: options for configuring the binding
Return
0
, on success; negative error code, otherwise
struct bpf_prog_bind_opts
struct bpf_prog_bind_opts {
size_t sz; /* size of this struct for forward/backward compatibility */
__u32 flags;
};
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome