Repository navigation
Commit 5c50732
libbpf: Clarify flags in ringbuf helpers
In 'bpf_ringbuf_reserve()' we require the flag to '0' at the moment.
For 'bpf_ringbuf_{discard,submit,output}' a flag of '0' might send a
notification to the process if needed.
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210412192434.944343-1-pctammela@mojatatu.com1 parent aadb2bb commit 5c50732
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
4085 | 4092 | | |
4086 | 4093 | | |
4087 | 4094 | | |
4088 | 4095 | | |
4089 | 4096 | | |
4090 | 4097 | | |
| 4098 | + | |
4091 | 4099 | | |
4092 | 4100 | | |
4093 | 4101 | | |
| |||
4099 | 4107 | | |
4100 | 4108 | | |
4101 | 4109 | | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
4102 | 4114 | | |
4103 | 4115 | | |
4104 | 4116 | | |
| |||
4109 | 4121 | | |
4110 | 4122 | | |
4111 | 4123 | | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
4112 | 4128 | | |
4113 | 4129 | | |
4114 | 4130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
4085 | 4092 | | |
4086 | 4093 | | |
4087 | 4094 | | |
4088 | 4095 | | |
4089 | 4096 | | |
4090 | 4097 | | |
| 4098 | + | |
4091 | 4099 | | |
4092 | 4100 | | |
4093 | 4101 | | |
| |||
4099 | 4107 | | |
4100 | 4108 | | |
4101 | 4109 | | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
4102 | 4114 | | |
4103 | 4115 | | |
4104 | 4116 | | |
| |||
4109 | 4121 | | |
4110 | 4122 | | |
4111 | 4123 | | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
4112 | 4128 | | |
4113 | 4129 | | |
4114 | 4130 | | |
| |||
0 commit comments