aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/bpf/btf.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst
index 29396e6943b0..8820360d00da 100644
--- a/Documentation/bpf/btf.rst
+++ b/Documentation/bpf/btf.rst
@@ -578,6 +578,7 @@ For line_info, the line number and column number are defined as below:
578 #define BPF_LINE_INFO_LINE_COL(line_col) ((line_col) & 0x3ff) 578 #define BPF_LINE_INFO_LINE_COL(line_col) ((line_col) & 0x3ff)
579 579
5803.4 BPF_{PROG,MAP}_GET_NEXT_ID 5803.4 BPF_{PROG,MAP}_GET_NEXT_ID
581==============================
581 582
582In kernel, every loaded program, map or btf has a unique id. The id won't 583In kernel, every loaded program, map or btf has a unique id. The id won't
583change during the lifetime of a program, map, or btf. 584change during the lifetime of a program, map, or btf.
@@ -587,6 +588,7 @@ each command, to user space, for bpf program or maps, respectively, so an
587inspection tool can inspect all programs and maps. 588inspection tool can inspect all programs and maps.
588 589
5893.5 BPF_{PROG,MAP}_GET_FD_BY_ID 5903.5 BPF_{PROG,MAP}_GET_FD_BY_ID
591===============================
590 592
591An introspection tool cannot use id to get details about program or maps. 593An introspection tool cannot use id to get details about program or maps.
592A file descriptor needs to be obtained first for reference-counting purpose. 594A file descriptor needs to be obtained first for reference-counting purpose.