-
Hi, The use case for this is as follow: Is this possible using the current ringbuf API ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It's been a while since I looked into this but IIRC that use case was discussed in the original ringbuf review but it was left out from the initial version. Perhaps SetDeadline err could indeed check if data is available and set |
Beta Was this translation helpful? Give feedback.
-
Here is what I think you want to do: set BPF_RB_NO_WAKEUP on all but some events from the BPF side. You're turning of epoll notifications but still want to be able to flush the buffer periodically, since you're not guaranteed a next event. Next time please describe your goals directly in addition to linking to the patchset, it would've saved me some time reading. I think that Mykko is right: we could set |
Beta Was this translation helpful? Give feedback.
PR is at #1111 @lmb @mythi