Commit e3321e5
bpf: Add support for KF_RET_RCU flag
Add a kfunc annotation 'KF_RET_RCU' to signal that the return type must
be marked MEM_RCU, to return objects that are RCU protected. Naturally,
this must imply that the kfunc is invoked in an RCU critical section,
and thus the presence of this flag implies the presence of the
KF_RCU_PROTECTED flag. Upcoming kfunc scx_bpf_cpu_curr() [0] will be
made to make use of this flag.
[0]: https://lore.kernel.org/all/[email protected]
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>1 parent 8689caf commit e3321e5
File tree
3 files changed
+19
-2
lines changed- Documentation/bpf
- include/linux
- kernel/bpf
3 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
349 | 358 | | |
350 | 359 | | |
351 | | - | |
352 | | - | |
| 360 | + | |
| 361 | + | |
353 | 362 | | |
354 | 363 | | |
355 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12342 | 12342 | | |
12343 | 12343 | | |
12344 | 12344 | | |
| 12345 | + | |
| 12346 | + | |
| 12347 | + | |
| 12348 | + | |
| 12349 | + | |
12345 | 12350 | | |
12346 | 12351 | | |
12347 | 12352 | | |
| |||
14042 | 14047 | | |
14043 | 14048 | | |
14044 | 14049 | | |
| 14050 | + | |
| 14051 | + | |
14045 | 14052 | | |
14046 | 14053 | | |
14047 | 14054 | | |
| |||
0 commit comments