diff options
author | WangYuli <wangyuli@uniontech.com> | 2025-04-23 11:06:32 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-04-24 07:46:04 -0700 |
commit | 4cc20482143c6dd009ea0c99762bb4bdeac98ec2 (patch) | |
tree | a658499eb0d2174458028a64703803cb3f08d90e | |
parent | 60400cd2b9bed537e6a2a8b580cfc3271e1aa672 (diff) |
bpf, docs: Fix non-standard line break
Even though the kernel's coding-style document does not explicitly
state this, we generally put a newline after the semicolon of every
C language statement to enhance code readability.
Adjust the placement of newlines to adhere to this convention.
Reported-by: Chen Linxuan <chenlinxuan@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://lore.kernel.org/r/DB66473733449DB0+20250423030632.17626-1-wangyuli@uniontech.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | Documentation/bpf/bpf_iterators.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/bpf/bpf_iterators.rst b/Documentation/bpf/bpf_iterators.rst index 7f514cb6b052..385cd05aabf5 100644 --- a/Documentation/bpf/bpf_iterators.rst +++ b/Documentation/bpf/bpf_iterators.rst @@ -323,8 +323,8 @@ Now, in the userspace program, pass the pointer of struct to the :: - link = bpf_program__attach_iter(prog, &opts); iter_fd = - bpf_iter_create(bpf_link__fd(link)); + link = bpf_program__attach_iter(prog, &opts); + iter_fd = bpf_iter_create(bpf_link__fd(link)); If both *tid* and *pid* are zero, an iterator created from this struct ``bpf_iter_attach_opts`` will include every opened file of every task in the |