Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/evpl/evpl_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ int evpl_iovec_alloc(
unsigned int flags,
struct evpl_iovec *r_iovec);

/* The configured iovec buffer size: the largest contiguous region a single
* evpl_iovec_alloc (max_iovecs == 1) can satisfy. */
unsigned int evpl_buffer_size(
void);

int evpl_iovec_reserve(
struct evpl *evpl,
unsigned int length,
Expand Down
6 changes: 6 additions & 0 deletions src/core/iovec.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ evpl_iovec_alloc(
return niovs;
} /* evpl_iovec_alloc */

SYMBOL_EXPORT unsigned int
evpl_buffer_size(void)
{
return evpl_shared->config->buffer_size;
} /* evpl_buffer_size */

void
evpl_iovec_alloc_whole(
struct evpl *evpl,
Expand Down
Loading
Loading