suricata
flow-spare-pool.c File Reference
#include "suricata-common.h"
#include "threads.h"
#include "flow-private.h"
#include "flow-queue.h"
#include "flow-util.h"
#include "flow-spare-pool.h"
#include "util-error.h"
#include "util-debug.h"
#include "util-print.h"
#include "util-validate.h"
Include dependency graph for flow-spare-pool.c:

Go to the source code of this file.

Data Structures

struct  FlowSparePool
 

Typedefs

typedef struct FlowSparePool FlowSparePool
 

Functions

uint32_t FlowSpareGetPoolSize (void)
 
void FlowSparePoolReturnFlow (Flow *f)
 
void FlowSparePoolReturnFlows (FlowQueuePrivate *fqp)
 
FlowQueuePrivate FlowSpareGetFromPool (void)
 
void FlowSparePoolUpdate (uint32_t size)
 
void FlowSparePoolInit (void)
 
void FlowSparePoolDestroy (void)
 

Variables

uint32_t flow_spare_pool_block_size = 100
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Flow queue handler functions

Definition in file flow-spare-pool.c.

Typedef Documentation

◆ FlowSparePool

typedef struct FlowSparePool FlowSparePool

Function Documentation

◆ FlowSpareGetFromPool()

FlowQueuePrivate FlowSpareGetFromPool ( void  )

Definition at line 175 of file flow-spare-pool.c.

References SCMutexLock.

◆ FlowSpareGetPoolSize()

uint32_t FlowSpareGetPoolSize ( void  )

Definition at line 47 of file flow-spare-pool.c.

References SCMutexLock.

◆ FlowSparePoolDestroy()

void FlowSparePoolDestroy ( void  )

Definition at line 312 of file flow-spare-pool.c.

References SCMutexLock.

Referenced by FlowShutdown().

Here is the caller graph for this function:

◆ FlowSparePoolInit()

void FlowSparePoolInit ( void  )

Definition at line 293 of file flow-spare-pool.c.

References SCMutexLock.

Referenced by FlowInitConfig().

Here is the caller graph for this function:

◆ FlowSparePoolReturnFlow()

void FlowSparePoolReturnFlow ( Flow f)

Definition at line 100 of file flow-spare-pool.c.

References SCMutexLock.

◆ FlowSparePoolReturnFlows()

void FlowSparePoolReturnFlows ( FlowQueuePrivate fqp)

Definition at line 122 of file flow-spare-pool.c.

◆ FlowSparePoolUpdate()

void FlowSparePoolUpdate ( uint32_t  size)

Variable Documentation

◆ flow_spare_pool_block_size

uint32_t flow_spare_pool_block_size = 100

Definition at line 43 of file flow-spare-pool.c.

Referenced by FlowSparePoolUpdate().