Motr  M0
buffer_pool.h File Reference
#include "lib/types.h"
#include "lib/mutex.h"
#include "net/net.h"
#include "lib/tlist.h"
Include dependency graph for buffer_pool.h:

Go to the source code of this file.

Data Structures

struct  m0_net_buffer_pool_ops
 
struct  m0_net_buffer_pool
 

Macros

#define __MOTR_BUFFER_POOL_H__
 

Enumerations

enum  { M0_BUFFER_ANY_COLOUR = ~0, M0_NET_BUFFER_POOL_THRESHOLD = 2 }
 

Functions

M0_INTERNAL bool m0_net_buffer_pool_invariant (const struct m0_net_buffer_pool *pool)
 
M0_INTERNAL int m0_net_buffer_pool_init (struct m0_net_buffer_pool *pool, struct m0_net_domain *ndom, uint32_t threshold, uint32_t seg_nr, m0_bcount_t seg_size, uint32_t colours, unsigned shift, bool dont_dump)
 
M0_INTERNAL int m0_net_buffer_pool_provision (struct m0_net_buffer_pool *pool, uint32_t buf_nr)
 
M0_INTERNAL void m0_net_buffer_pool_fini (struct m0_net_buffer_pool *pool)
 
M0_INTERNAL void m0_net_buffer_pool_lock (struct m0_net_buffer_pool *pool)
 
M0_INTERNAL bool m0_net_buffer_pool_is_locked (const struct m0_net_buffer_pool *pool)
 
M0_INTERNAL bool m0_net_buffer_pool_is_not_locked (const struct m0_net_buffer_pool *pool)
 
M0_INTERNAL void m0_net_buffer_pool_unlock (struct m0_net_buffer_pool *pool)
 
M0_INTERNAL struct m0_net_bufferm0_net_buffer_pool_get (struct m0_net_buffer_pool *pool, uint32_t colour)
 
M0_INTERNAL void m0_net_buffer_pool_put (struct m0_net_buffer_pool *pool, struct m0_net_buffer *buf, uint32_t colour)
 
M0_INTERNAL bool m0_net_buffer_pool_prune (struct m0_net_buffer_pool *pool)
 

Macro Definition Documentation

◆ __MOTR_BUFFER_POOL_H__

#define __MOTR_BUFFER_POOL_H__

Definition at line 26 of file buffer_pool.h.