Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some questions regarding buffer rings #1431

noteflakes started this conversation in General
Discussion options

Hi, I'm exploring the use of buffer rings for sending and receiving bundles. I have a couple of questions:

  1. Do buffers added to the buffer ring have to be page-aligned or can I use non-aligned buffers as well?
  2. Is there a possibility to remove buffers from a buffer ring? The use case I'm aiming for is being able to reuse a buffer ring for sending bundles. In the case of an error, or incomplete send, the buffer ring might still contain buffer entries. If I want to reuse it for sending bundles, I'll need to first remove all existing buffers from the ring. Or am I missing anything?

Thanks

You must be logged in to vote

Replies: 1 comment

Comment options

  1. Buffers do not have to be aligned to anything other than what the normal request would require. For send/recv, there are no alignment restrictions.
  2. If whatever send(s) you have using the ring are not active, then you can manipulate the ring entries as you see fit.
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /