suricata
|
Go to the source code of this file.
Macros | |
#define | FLOW_SPARE_POOL_BLOCK_SIZE 100 |
Functions | |
void | FlowSparePoolInit (void) |
void | FlowSparePoolDestroy (void) |
void | FlowSparePoolUpdate (uint32_t size) |
uint32_t | FlowSpareGetPoolSize (void) |
FlowQueuePrivate | FlowSpareGetFromPool (void) |
void | FlowSparePoolReturnFlow (Flow *f) |
void | FlowSparePoolReturnFlows (FlowQueuePrivate *fqp) |
Definition in file flow-spare-pool.h.
#define FLOW_SPARE_POOL_BLOCK_SIZE 100 |
Definition at line 30 of file flow-spare-pool.h.
FlowQueuePrivate FlowSpareGetFromPool | ( | void | ) |
Definition at line 173 of file flow-spare-pool.c.
References DEBUG_VALIDATE_BUG_ON, FLOW_SPARE_POOL_BLOCK_SIZE, FlowQueuePrivate_::len, FlowSparePool::next, FlowSparePool::queue, SCFree, SCMutexLock, and SCMutexUnlock.
uint32_t FlowSpareGetPoolSize | ( | void | ) |
Definition at line 46 of file flow-spare-pool.c.
References SCMutexLock, and SCMutexUnlock.
void FlowSparePoolDestroy | ( | void | ) |
Definition at line 310 of file flow-spare-pool.c.
References cnt, FlowFree(), FlowQueuePrivateGetFromTop(), next, FlowSparePool::next, FlowSparePool::queue, SCFree, SCMutexLock, and SCMutexUnlock.
Referenced by FlowShutdown().
void FlowSparePoolInit | ( | void | ) |
Definition at line 291 of file flow-spare-pool.c.
References cnt, FatalError, flow_config, FlowQueuePrivate_::len, FlowSparePool::next, FlowCnf_::prealloc, FlowSparePool::queue, SCMutexLock, and SCMutexUnlock.
Referenced by FlowInitConfig().
void FlowSparePoolReturnFlow | ( | Flow * | f | ) |
Definition at line 98 of file flow-spare-pool.c.
References DEBUG_VALIDATE_BUG_ON, FLOW_SPARE_POOL_BLOCK_SIZE, FlowQueuePrivateAppendFlow(), FlowQueuePrivate_::len, FlowSparePool::next, FlowSparePool::queue, SCMutexLock, and SCMutexUnlock.
void FlowSparePoolReturnFlows | ( | FlowQueuePrivate * | fqp | ) |
Definition at line 120 of file flow-spare-pool.c.
References DEBUG_VALIDATE_BUG_ON, FLOW_SPARE_POOL_BLOCK_SIZE, FlowQueuePrivateAppendPrivate(), FlowQueuePrivate_::len, FlowSparePool::next, FlowSparePool::queue, SCFree, SCMutexLock, and SCMutexUnlock.
void FlowSparePoolUpdate | ( | uint32_t | size | ) |
Definition at line 217 of file flow-spare-pool.c.
References cnt, flow_config, FLOW_SPARE_POOL_BLOCK_SIZE, FlowFree(), FlowQueuePrivateGetFromTop(), head, FlowQueuePrivate_::len, FlowSparePool::next, FlowCnf_::prealloc, FlowSparePool::queue, SCFree, SCMutexLock, SCMutexUnlock, and tail.