suricata
flow-manager.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2020 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Anoop Saldanha <anoopsaldanha@gmail.com>
22  */
23 
24 #ifndef __FLOW_MANAGER_H__
25 #define __FLOW_MANAGER_H__
26 
27 /** flow manager scheduling condition */
30 #define FlowWakeupFlowManagerThread() SCCtrlCondSignal(&flow_manager_ctrl_cond)
33 #define FlowWakeupFlowRecyclerThread() SCCtrlCondSignal(&flow_recycler_ctrl_cond)
34 
35 #define FlowTimeoutsReset() FlowTimeoutsInit()
36 void FlowTimeoutsInit(void);
37 void FlowTimeoutsEmergency(void);
38 void FlowManagerThreadSpawn(void);
40 void FlowRecyclerThreadSpawn(void);
42 void TmModuleFlowManagerRegister (void);
44 
45 #endif /* __FLOW_MANAGER_H__ */
flow_manager_ctrl_cond
SCCtrlCondT flow_manager_ctrl_cond
Definition: flow-manager.c:95
FlowManagerThreadSpawn
void FlowManagerThreadSpawn(void)
spawn the flow manager thread
Definition: flow-manager.c:944
TmModuleFlowRecyclerRegister
void TmModuleFlowRecyclerRegister(void)
Definition: flow-manager.c:1248
flow_recycler_ctrl_cond
SCCtrlCondT flow_recycler_ctrl_cond
Definition: flow-manager.c:97
FlowTimeoutsEmergency
void FlowTimeoutsEmergency(void)
Definition: flow-manager.c:105
FlowDisableFlowRecyclerThread
void FlowDisableFlowRecyclerThread(void)
Used to disable flow recycler thread(s).
Definition: flow-manager.c:1175
FlowDisableFlowManagerThread
void FlowDisableFlowManagerThread(void)
Used to disable flow manager thread(s).
Definition: flow-manager.c:142
SCCtrlCondT
#define SCCtrlCondT
Definition: threads-debug.h:382
flow_recycler_ctrl_mutex
SCCtrlMutex flow_recycler_ctrl_mutex
Definition: flow-manager.c:98
SCCtrlMutex
#define SCCtrlMutex
Definition: threads-debug.h:373
FlowRecyclerThreadSpawn
void FlowRecyclerThreadSpawn(void)
spawn the flow recycler thread
Definition: flow-manager.c:1135
FlowTimeoutsInit
void FlowTimeoutsInit(void)
Definition: flow-manager.c:100
flow_manager_ctrl_mutex
SCCtrlMutex flow_manager_ctrl_mutex
Definition: flow-manager.c:96
TmModuleFlowManagerRegister
void TmModuleFlowManagerRegister(void)
Definition: flow-manager.c:1234