suricata
tm-queues.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Tmq_
 

Typedefs

typedef struct Tmq_ Tmq
 

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

Definition in file tm-queues.h.

Typedef Documentation

typedef struct Tmq_ Tmq

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: