suricata
TmModule_ Struct Reference

#include <tm-modules.h>

Data Fields

const char * name
 
TmEcode(* ThreadInit )(ThreadVars *, const void *, void **)
 
void(* ThreadExitPrintStats )(ThreadVars *, void *)
 
TmEcode(* ThreadDeinit )(ThreadVars *, void *)
 
TmEcode(* Func )(ThreadVars *, Packet *, void *)
 
TmEcode(* PktAcqLoop )(ThreadVars *, void *, void *)
 
TmEcode(* PktAcqBreakLoop )(ThreadVars *, void *)
 
bool(* ThreadBusy )(ThreadVars *tv, void *thread_data)
 
TmEcode(* Management )(ThreadVars *, void *)
 
TmEcode(* Init )(void)
 
TmEcode(* DeInit )(void)
 
void(* RegisterTests )(void)
 
uint8_t cap_flags
 
uint8_t flags
 

Detailed Description

Definition at line 43 of file tm-modules.h.

Field Documentation

◆ cap_flags

◆ DeInit

TmEcode(* TmModule_::DeInit) (void)

Definition at line 69 of file tm-modules.h.

Referenced by TmModuleRunDeInit().

◆ flags

◆ Func

◆ Init

TmEcode(* TmModule_::Init) (void)

global Init/DeInit

Definition at line 68 of file tm-modules.h.

Referenced by TmModuleRunInit().

◆ Management

TmEcode(* TmModule_::Management) (ThreadVars *, void *)

◆ name

◆ PktAcqBreakLoop

TmEcode(* TmModule_::PktAcqBreakLoop) (ThreadVars *, void *)

terminates the capture loop in PktAcqLoop

Definition at line 57 of file tm-modules.h.

Referenced by TmModuleReceiveErfDagRegister(), TmModuleReceiveErfFileRegister(), and TmSlotSetFuncAppend().

◆ PktAcqLoop

TmEcode(* TmModule_::PktAcqLoop) (ThreadVars *, void *, void *)

◆ RegisterTests

void(* TmModule_::RegisterTests) (void)

Definition at line 71 of file tm-modules.h.

Referenced by TmModuleRegisterTests().

◆ ThreadBusy

bool(* TmModule_::ThreadBusy) (ThreadVars *tv, void *thread_data)

does a thread still have tasks to complete before it can be killed?

Return values
bool
Parameters
tvthreadvars
thread_datathread module thread data (e.g. FlowWorkerThreadData for FlowWorker)

Definition at line 63 of file tm-modules.h.

◆ ThreadDeinit

◆ ThreadExitPrintStats

◆ ThreadInit


The documentation for this struct was generated from the following file: