aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/bpf.txt7
-rw-r--r--sys/linux/bpf.txt.const1
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index 67a70000f..d1050edf3 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -64,6 +64,7 @@ bpf$ITER_CREATE(cmd const[BPF_ITER_CREATE], arg ptr[in, bpf_iter_create_arg], si
bpf$LINK_GET_FD_BY_ID(cmd const[BPF_LINK_GET_FD_BY_ID], arg ptr[in, bpf_link_id], size len[arg]) fd_bpf_link
bpf$LINK_GET_NEXT_ID(cmd const[BPF_LINK_GET_NEXT_ID], arg ptr[inout, bpf_link_get_next_id_arg], size len[arg])
bpf$LINK_DETACH(cmd const[BPF_LINK_DETACH], arg ptr[in, fd_bpf_link], size len[arg])
+bpf$PROG_BIND_MAP(cmd const[BPF_PROG_BIND_MAP], arg ptr[in, bpf_prog_bind_map_arg], size len[arg])
bpf_map_create_arg {
type flags[bpf_map_type, int32]
@@ -469,6 +470,12 @@ bpf_prog_get_fd_by_id_arg {
flags const[0, int32]
}
+bpf_prog_bind_map_arg {
+ prog_fd fd_bpf_prog
+ map_fd fd_bpf_map
+ flags const[0, int32]
+}
+
bpf_get_prog_info_arg {
prog fd_bpf_prog
len len[info, int32]
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const
index 7dda20e41..7f8e0defd 100644
--- a/sys/linux/bpf.txt.const
+++ b/sys/linux/bpf.txt.const
@@ -143,6 +143,7 @@ BPF_OBJ_NAME_LEN = 16
BPF_OBJ_PIN = 6
BPF_OR0 = 4
BPF_PROG_ATTACH = 8
+BPF_PROG_BIND_MAP = 35
BPF_PROG_DETACH = 9
BPF_PROG_GET_FD_BY_ID = 13
BPF_PROG_GET_NEXT_ID = 11