25 #ifndef __MOTR_BUFFER_POOL_H__ 26 #define __MOTR_BUFFER_POOL_H__ 175 uint32_t threshold, uint32_t
seg_nr,
177 unsigned shift,
bool dont_dump);
static m0_bcount_t seg_size
M0_INTERNAL void m0_net_buffer_pool_fini(struct m0_net_buffer_pool *pool)
M0_INTERNAL struct m0_net_buffer * m0_net_buffer_pool_get(struct m0_net_buffer_pool *pool, uint32_t colour)
M0_INTERNAL void m0_net_buffer_pool_unlock(struct m0_net_buffer_pool *pool)
const struct m0_net_buffer_pool_ops * nbp_ops
struct m0_tl * nbp_colours
M0_INTERNAL bool m0_net_buffer_pool_is_locked(const struct m0_net_buffer_pool *pool)
M0_INTERNAL bool m0_net_buffer_pool_invariant(const struct m0_net_buffer_pool *pool)
void(* nbpo_below_threshold)(struct m0_net_buffer_pool *)
M0_INTERNAL bool m0_net_buffer_pool_prune(struct m0_net_buffer_pool *pool)
M0_INTERNAL bool m0_net_buffer_pool_is_not_locked(const struct m0_net_buffer_pool *pool)
void(* nbpo_not_empty)(struct m0_net_buffer_pool *)
M0_INTERNAL void m0_net_buffer_pool_lock(struct m0_net_buffer_pool *pool)
static struct m0_pool pool
struct m0_net_domain * nbp_ndom
struct m0_mutex nbp_mutex
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_put(struct m0_net_buffer_pool *pool, struct m0_net_buffer *buf, uint32_t colour)
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)