suricata
tm-queues.h File Reference
#include "packet-queue.h"
Include dependency graph for tm-queues.h:
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.
 

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

◆ Tmq

typedef struct Tmq_ Tmq

Function Documentation

◆ TmqCreateQueue()

Tmq * TmqCreateQueue ( const char *  name)

Referenced by TmThreadCreate().

Here is the caller graph for this function:

◆ TmqDebugList()

void TmqDebugList ( void  )

◆ TmqGetQueueByName()

Tmq * TmqGetQueueByName ( const char *  name)

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

References Tmq_::name, name, next, and TAILQ_FOREACH.

Referenced by TmThreadCreate().

Here is the caller graph for this function:

◆ TmqResetQueues()

void TmqResetQueues ( void  )

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

References Tmq_::name, next, PacketQueueFree(), Tmq_::pq, SCFree, TAILQ_FIRST, and TAILQ_REMOVE.

Referenced by PostRunDeinit().

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

◆ TmValidateQueueState()

void TmValidateQueueState ( void  )

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

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

References FatalError, Tmq_::id, PacketQueue_::mutex_q, Tmq_::name, next, Tmq_::pq, Tmq_::reader_cnt, SCLogError, SCMutexLock, SCMutexUnlock, TAILQ_FOREACH, and Tmq_::writer_cnt.

Referenced by RunModeDispatch().

Here is the caller graph for this function: