SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions
pkt_pool.h File Reference

sc_pool: A pool of packet buffers. More...

Go to the source code of this file.

Functions

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. More...
 
void sc_pool_return_packets (struct sc_pool *pool, struct sc_packet_list *list)
 Return packets to a pool. More...
 
void sc_pool_on_threshold (struct sc_pool *pool, struct sc_callback *event, int threshold)
 Request a callback when the pool is refilled. More...
 
struct sc_packetsc_pool_duplicate_packet (struct sc_pool *pool, struct sc_packet *packet, int snap)
 Duplicate a packet. More...
 
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. More...
 

Detailed Description

sc_pool: A pool of packet buffers.