8 #ifndef __SOLAR_CAPTURE_PKT_POOL_H__
9 #define __SOLAR_CAPTURE_PKT_POOL_H__
43 int min_packets,
int max_packets);
104 struct sc_pool* pool,
void sc_pool_return_packets(struct sc_pool *pool, struct sc_packet_list *list)
Return packets to a pool.
Representation of a packet.
Definition: ext_packet.h:56
int sc_packet_append_iovec_ptr(struct sc_packet *packet, struct sc_pool *pool, struct sc_iovec_ptr *iovp, int snap)
Append data to a packet.
void sc_pool_on_threshold(struct sc_pool *pool, struct sc_callback *event, int threshold)
Request a callback when the pool is refilled.
A list of packets or packet buffers.
Definition: ext_packet_list.h:14
struct sc_packet * sc_pool_duplicate_packet(struct sc_pool *pool, struct sc_packet *packet, int snap)
Duplicate a packet.
A callback object.
Definition: event.h:33
int sc_pool_get_packets(struct sc_packet_list *list, struct sc_pool *pool, int min_packets, int max_packets)
Get packet buffers from a pool.