summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/Documentation/bpftool-gen.rst
diff options
context:
space:
mode:
authorRameez Rehman <rameezrehman408@hotmail.com>2024-03-31 23:03:46 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2024-04-02 16:50:23 +0300
commita70f5d840a56a82c576385ca79ee55c1598f1bc3 (patch)
tree88b41a8bc9a8f29aec36b5efb160603e5cec0a01 /tools/bpf/bpftool/Documentation/bpftool-gen.rst
parentea379b3ccc2e4dff9c3d616f0611b5312fe389ad (diff)
downloadlinux-a70f5d840a56a82c576385ca79ee55c1598f1bc3.tar.xz
bpftool: Clean-up typos, punctuation, list formatting in docs
Improve the formatting of the attach flags for cgroup programs in the relevant man page, and fix typos ("can be on of", "an userspace inet socket") when introducing that list. Also fix a couple of other trivial issues in docs. [ Quentin: Fixed trival issues in bpftool-gen.rst and bpftool-iter.rst ] Signed-off-by: Rameez Rehman <rameezrehman408@hotmail.com> Signed-off-by: Quentin Monnet <qmo@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20240331200346.29118-4-qmo@kernel.org
Diffstat (limited to 'tools/bpf/bpftool/Documentation/bpftool-gen.rst')
-rw-r--r--tools/bpf/bpftool/Documentation/bpftool-gen.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bpf/bpftool/Documentation/bpftool-gen.rst b/tools/bpf/bpftool/Documentation/bpftool-gen.rst
index e9589c21e9c3..c768e6d4ae09 100644
--- a/tools/bpf/bpftool/Documentation/bpftool-gen.rst
+++ b/tools/bpf/bpftool/Documentation/bpftool-gen.rst
@@ -110,7 +110,7 @@ bpftool gen skeleton *FILE*
- **example__open_and_load** combines **example__open** and
**example__load** invocations in one commonly used operation.
- - **example__attach** and **example__detach**
+ - **example__attach** and **example__detach**.
This pair of functions allow to attach and detach, correspondingly,
already loaded BPF object. Only BPF programs of types supported by libbpf
for auto-attachment will be auto-attached and their corresponding BPF
@@ -119,7 +119,7 @@ bpftool gen skeleton *FILE*
**example__detach** will detach both links created automatically, as well
as those populated by user manually.
- - **example__destroy**
+ - **example__destroy**.
Detach and unload BPF programs, free up all the resources used by
skeleton and BPF object.
@@ -146,11 +146,11 @@ bpftool gen subskeleton *FILE*
Consequently, there are only two functions defined for subskeletons:
- - **example__open(bpf_object\*)**
+ - **example__open(bpf_object\*)**.
Instantiates a subskeleton from an already opened (but not necessarily
loaded) **bpf_object**.
- - **example__destroy()**
+ - **example__destroy()**.
Frees the storage for the subskeleton but *does not* unload any BPF
programs or maps.