[PATCH bpf-next v3 4/8] bpf, docs: Document BPF_ITER_NOSLEEP
From: Michal Luczaj
Date: Sat Nov 07 2026 - 14:24:36 EST
Commit dfcd17659112 ("bpf: Reject sleepable programs for task_vma
iterator") introduced BPF_ITER_NOSLEEP, but did not update the docs.
Mention the flag in bpf_iterators.rst.
Signed-off-by: Michal Luczaj <mhal@xxxxxxx>
---
Documentation/bpf/bpf_iterators.rst | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/Documentation/bpf/bpf_iterators.rst b/Documentation/bpf/bpf_iterators.rst
index 72435e32ffa1..c534215f05de 100644
--- a/Documentation/bpf/bpf_iterators.rst
+++ b/Documentation/bpf/bpf_iterators.rst
@@ -351,9 +351,15 @@ The following is the breakdown for each field in struct ``bpf_iter_reg``.
the bpf iterator.
* - feature
- Specifies certain action requests in the kernel BPF iterator
- infrastructure. Currently, only BPF_ITER_RESCHED is supported. This means
- that the kernel function cond_resched() is called to avoid other kernel
- subsystem (e.g., rcu) misbehaving.
+ infrastructure.
+
+ BPF_ITER_RESCHED
+ the kernel function cond_resched() is called to avoid other kernel
+ subsystem (e.g., rcu) misbehaving
+
+ BPF_ITER_NOSLEEP
+ ``seq_operations::show()`` cannot run sleepable programs
+
* - seq_info
- Specifies the set of seq operations for the BPF iterator and helpers to
initialize/free the private data for the corresponding ``seq_file``.
--
2.56.0