Skip to contentSkip to conversation

bpf: Update bpf_design_QA.rst to clarify that BTF_ID does not ABIify a function

PATCH New Paul E. McKenney 1 participant 1 message Aug 2, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 3/3 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.

---
 Documentation/bpf/bpf_design_QA.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/bpf/bpf_design_QA.rst +7 -0
index a06ae8a828e3d..a210b8a4df005 100644
@@ -291,3 +291,10 @@ The kernel function prototypes will change, and BPF programs attaching to
 them will need to change.  The BPF compile-once-run-everywhere (CO-RE)
 should be used in order to make it easier to adapt your BPF programs to
 different versions of the kernel.
+
+Q: Marking a function with BTF_ID makes that function an ABI?
+-------------------------------------------------------------
+A: NO.
+
+The BTF_ID macro does not cause a function to become part of the ABI
+any more than does the EXPORT_SYMBOL_GPL macro.
Signature · 1 line
2.31.1.189.g2e36527f23