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

Packet * TmqhInputSimple ( ThreadVars t)

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

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

Referenced by TmqhSimpleRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void TmqhInputSimpleShutdownHandler ( ThreadVars tv)

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

References PacketQueue_::cond_q, Tmq_::id, ThreadVars_::inq, Tmq_::reader_cnt, SCCondSignal, trans_q, and Tmq_::writer_cnt.

Referenced by TmqhSimpleRegister().

Here is the caller graph for this function:

void TmqhOutputSimple ( ThreadVars t,
Packet p 
)

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

References PacketQueue_::cond_q, Packet_::flags, Tmq_::id, PacketQueue_::mutex_q, ThreadVars_::outq, PacketEnqueue(), PKT_ALLOC, Packet_::root, SCCondSignal, SCLogDebug, SCMutexLock, SCMutexUnlock, and trans_q.

Referenced by TmqhSimpleRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

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: