summaryrefslogtreecommitdiff
path: root/include/linux/patchkey.h
diff options
context:
space:
mode:
authorKaitao Cheng <chengkaitao@kylinos.cn>2026-02-14 15:40:42 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-02-24 04:37:06 +0300
commited8fa4b8894f7e80d3a6bf63e4cb880c7545c63a (patch)
tree6d7f94232c2320da8a90de8bde29c155d2f24eee /include/linux/patchkey.h
parentfb1590448ff7e79e304f9bbe662fc20334038b50 (diff)
downloadlinux-ed8fa4b8894f7e80d3a6bf63e4cb880c7545c63a.tar.xz
selftests/bpf: Add test case for rbtree nodes that contain both bpf_refcount and kptr fields.
Allow bpf_kptr_xchg to directly operate on pointers marked with NON_OWN_REF | MEM_RCU. In the example demonstrated in this patch, as long as "struct bpf_refcount ref" exists, the __kptr pointer is guaranteed to carry the MEM_RCU flag. The ref member itself does not need to be explicitly used. Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn> Link: https://lore.kernel.org/r/20260214124042.62229-6-pilgrimtao@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions