Skip to content

Commit 5861701

Browse files
chenhengqiborkmann
authored andcommitted
bpf: Fix comment for helper bpf_current_task_under_cgroup()
Fix the descriptions of the return values of helper bpf_current_task_under_cgroup(). Fixes: c6b5fb8 ("bpf: add documentation for eBPF helpers (42-50)") Signed-off-by: Hengqi Chen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 6069589 commit 5861701

File tree

2 files changed

+4
-4
lines changed
  • include/uapi/linux
  • tools/include/uapi/linux

2 files changed

+4
-4
lines changed

include/uapi/linux/bpf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,8 +2302,8 @@ union bpf_attr {
23022302
* Return
23032303
* The return value depends on the result of the test, and can be:
23042304
*
2305-
* * 0, if current task belongs to the cgroup2.
2306-
* * 1, if current task does not belong to the cgroup2.
2305+
* * 1, if current task belongs to the cgroup2.
2306+
* * 0, if current task does not belong to the cgroup2.
23072307
* * A negative error code, if an error occurred.
23082308
*
23092309
* long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)

tools/include/uapi/linux/bpf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,8 +2302,8 @@ union bpf_attr {
23022302
* Return
23032303
* The return value depends on the result of the test, and can be:
23042304
*
2305-
* * 0, if current task belongs to the cgroup2.
2306-
* * 1, if current task does not belong to the cgroup2.
2305+
* * 1, if current task belongs to the cgroup2.
2306+
* * 0, if current task does not belong to the cgroup2.
23072307
* * A negative error code, if an error occurred.
23082308
*
23092309
* long bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)

0 commit comments

Comments
 (0)