Re: [PATCH v4 08/24] ring-buffer: Expose buffer_data_page material

From: Steven Rostedt
Date: Fri May 09 2025 - 15:54:07 EST


On Tue, 6 May 2025 17:48:04 +0100
Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:

> In preparation for allowing the write of ring-buffer compliant pages
> outside of ring_buffer.c, move buffer_data_page and timestamps
> encoding functions into the publicly available ring_buffer.h.
>
> Signed-off-by: Vincent Donnefort <vdonnefort@xxxxxxxxxx>

Let's create a new file for this instead of adding it to ring_buffer.h.
Although it's being used by remote buffers, I rather not make this
something that people may think they can access anywhere.

Perhaps: ring_buffer_types.h

with a comment stating that these are to be used by the remote ring buffers
and the ring buffer internals and should not be used directly.

-- Steve