suricata
tmqh-simple.c File Reference
#include "suricata.h"
#include "packet-queue.h"
#include "decode.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-queuehandlers.h"
#include "tmqh-simple.h"
Include dependency graph for tmqh-simple.c:

Go to the source code of this file.

Functions

PacketTmqhInputSimple (ThreadVars *t)
 
void TmqhOutputSimple (ThreadVars *t, Packet *p)
 
void TmqhInputSimpleShutdownHandler (ThreadVars *)
 
void TmqhSimpleRegister (void)
 

Detailed Description

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

Simple queue handler

Definition in file tmqh-simple.c.

Function Documentation

◆ TmqhInputSimple()

Packet * TmqhInputSimple ( ThreadVars t)

Definition at line 47 of file tmqh-simple.c.

References PacketQueue_::cond_q, ThreadVars_::inq, PacketQueue_::len, PacketQueue_::mutex_q, PacketDequeue(), Tmq_::pq, SCCondWait, SCMutexLock, SCMutexUnlock, and StatsSyncCountersIfSignalled().

Referenced by TmqhSimpleRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TmqhInputSimpleShutdownHandler()

void TmqhInputSimpleShutdownHandler ( ThreadVars tv)

Definition at line 71 of file tmqh-simple.c.

References PacketQueue_::cond_q, ThreadVars_::inq, PacketQueue_::mutex_q, Tmq_::pq, Tmq_::reader_cnt, SCCondSignal, SCMutexLock, SCMutexUnlock, tv, and Tmq_::writer_cnt.

Referenced by TmqhSimpleRegister().

Here is the caller graph for this function:

◆ TmqhOutputSimple()

void TmqhOutputSimple ( ThreadVars t,
Packet p 
)

Definition at line 86 of file tmqh-simple.c.

References BOOL2STR, PacketQueue_::cond_q, PacketQueue_::mutex_q, ThreadVars_::outq, PacketEnqueue(), Packet_::pool, Tmq_::pq, Packet_::root, SCCondSignal, SCLogDebug, SCMutexLock, and SCMutexUnlock.

Referenced by TmqhSimpleRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TmqhSimpleRegister()

void TmqhSimpleRegister ( void  )

Definition at line 39 of file tmqh-simple.c.

References Tmqh_::InHandler, Tmqh_::InShutdownHandler, Tmqh_::name, Tmqh_::OutHandler, TMQH_SIMPLE, tmqh_table, TmqhInputSimple(), TmqhInputSimpleShutdownHandler(), and TmqhOutputSimple().

Referenced by TmqhSetup().

Here is the call graph for this function:
Here is the caller graph for this function: