suricata
tm-queues.c File Reference
#include "suricata.h"
#include "threads.h"
#include "tm-queues.h"
#include "util-debug.h"
Include dependency graph for tm-queues.c:

Go to the source code of this file.

Macros

#define TMQ_MAX_QUEUES   256
 

Functions

TmqTmqCreateQueue (const char *name)
 
TmqTmqGetQueueByName (const char *name)
 
void TmqDebugList (void)
 
void TmqResetQueues (void)
 
void TmValidateQueueState (void)
 Checks if all the queues allocated so far have at least one reader and writer. More...
 

Detailed Description

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

Thread module management functions

Definition in file tm-queues.c.

Macro Definition Documentation

#define TMQ_MAX_QUEUES   256

Definition at line 31 of file tm-queues.c.

Referenced by TmqCreateQueue(), and TmqResetQueues().

Function Documentation

Tmq* TmqCreateQueue ( const char *  name)

Definition at line 36 of file tm-queues.c.

References Tmq_::id, Tmq_::name, SC_ERR_THREAD_QUEUE, SCLogDebug, SCLogError, SCStrdup, and TMQ_MAX_QUEUES.

Referenced by TmqhInputFlow(), TmqhOutputFlowIPPair(), and TmThreadCreate().

Here is the caller graph for this function:

void TmqDebugList ( void  )

Definition at line 68 of file tm-queues.c.

References len, SCMutexLock, SCMutexUnlock, and trans_q.

Tmq* TmqGetQueueByName ( const char *  name)

Definition at line 56 of file tm-queues.c.

Referenced by TmqhInputFlow(), and TmThreadCreate().

Here is the caller graph for this function:

void TmqResetQueues ( void  )

Definition at line 79 of file tm-queues.c.

References SCFree, and TMQ_MAX_QUEUES.

Referenced by PostRunDeinit(), and TmqhOutputFlowIPPair().

Here is the caller graph for this function:

void TmValidateQueueState ( void  )

Checks if all the queues allocated so far have at least one reader and writer.

Definition at line 95 of file tm-queues.c.

References FALSE, SC_ERR_FATAL, SC_ERR_THREAD_QUEUE, SCLogError, SCMutexLock, SCMutexUnlock, trans_q, and TRUE.

Referenced by RunModeDispatch().

Here is the caller graph for this function: