Skip to content

Commit 8fcf196

Browse files
paulmckrcuAlexei Starovoitov
authored andcommitted
bpf: Update bpf_design_QA.rst to clarify that BTF_ID does not ABIify a function
This patch updates bpf_design_QA.rst to clarify that mentioning a function to the BTF_ID macro does not make that function become part of the Linux kernel's ABI. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 62fc770 commit 8fcf196

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/bpf/bpf_design_QA.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,10 @@ The kernel function prototypes will change, and BPF programs attaching to
291291
them will need to change. The BPF compile-once-run-everywhere (CO-RE)
292292
should be used in order to make it easier to adapt your BPF programs to
293293
different versions of the kernel.
294+
295+
Q: Marking a function with BTF_ID makes that function an ABI?
296+
-------------------------------------------------------------
297+
A: NO.
298+
299+
The BTF_ID macro does not cause a function to become part of the ABI
300+
any more than does the EXPORT_SYMBOL_GPL macro.

0 commit comments

Comments
 (0)