From: Yonghong Song Date: Sat, 3 Dec 2022 18:46:13 +0000 (-0800) Subject: docs/bpf: Add KF_RCU documentation X-Git-Tag: v6.6.17~5932^2~23^2~29^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f53625649888c6ec9eeca151f802e905482c6698;p=platform%2Fkernel%2Flinux-rpi.git docs/bpf: Add KF_RCU documentation Add proper KF_RCU documentation in kfuncs.rst. Signed-off-by: Yonghong Song Link: https://lore.kernel.org/r/20221203184613.478967-1-yhs@fb.com Signed-off-by: Alexei Starovoitov --- diff --git a/Documentation/bpf/kfuncs.rst b/Documentation/bpf/kfuncs.rst index 9077447..b027fe1 100644 --- a/Documentation/bpf/kfuncs.rst +++ b/Documentation/bpf/kfuncs.rst @@ -191,6 +191,15 @@ rebooting or panicking. Due to this additional restrictions apply to these calls. At the moment they only require CAP_SYS_BOOT capability, but more can be added later. +2.4.8 KF_RCU flag +----------------- + +The KF_RCU flag is used for kfuncs which have a rcu ptr as its argument. +When used together with KF_ACQUIRE, it indicates the kfunc should have a +single argument which must be a trusted argument or a MEM_RCU pointer. +The argument may have reference count of 0 and the kfunc must take this +into consideration. + 2.5 Registering the kfuncs --------------------------