Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mpipe_buffer.h File Reference

Buffer and buffer pool APIs. More...

#include <stdbool.h>
#include <stdint.h>
#include <zephyr/net_buf.h>

Go to the source code of this file.

Data Structures

struct  mpipe_buffer_pool_config
 Buffer pool config structure. More...
struct  mpipe_buffer_pool
 Buffer pool structure. More...
struct  mpipe_buffer_meta
 Common buffer metadata stored in net_buf user_data. More...

Functions

static struct mpipe_buffer_meta * mpipe_buffer_get_meta (const struct net_buf *buf)
 Get the mpipe metadata carried by a buffer.
void mpipe_buffer_destroy (struct net_buf *buf)
 Destroy callback for net_buf.
int mpipe_buffer_pool_configure (struct mpipe_buffer_pool *pool, const struct mpipe_structure *config)
 Configure a buffer pool.
int mpipe_buffer_pool_set_req_config (struct mpipe_buffer_pool *pool, const struct mpipe_buffer_pool_config *cfg)
 State what a buffer pool requires of its own accord.
int mpipe_buffer_pool_set_config (struct mpipe_buffer_pool *pool, const struct mpipe_buffer_pool_config *cfg)
 Apply a negotiated config to a buffer pool.
int mpipe_buffer_pool_start (struct mpipe_buffer_pool *pool)
 Start a buffer pool.
int mpipe_buffer_pool_stop (struct mpipe_buffer_pool *pool)
 Stop a buffer pool.
void mpipe_buffer_pool_init (struct mpipe_buffer_pool *pool)
 Initialize a buffer pool.

Detailed Description

Buffer and buffer pool APIs.