suricata
|
Go to the source code of this file.
Data Structures | |
struct | DefragTrackerStack_ |
Macros | |
#define | DQLOCK_MUTEX |
#define | DQLOCK_INIT(q) SCMutexInit(&(q)->m, NULL) |
#define | DQLOCK_DESTROY(q) SCMutexDestroy(&(q)->m) |
#define | DQLOCK_LOCK(q) SCMutexLock(&(q)->m) |
#define | DQLOCK_TRYLOCK(q) SCMutexTrylock(&(q)->m) |
#define | DQLOCK_UNLOCK(q) SCMutexUnlock(&(q)->m) |
Typedefs | |
typedef struct DefragTrackerStack_ | DefragTrackerStack |
Functions | |
DefragTrackerStack * | DefragTrackerStackInit (DefragTrackerStack *) |
void | DefragTrackerStackDestroy (DefragTrackerStack *) |
Destroy a tracker queue. More... | |
void | DefragTrackerEnqueue (DefragTrackerStack *, DefragTracker *) |
add a tracker to a queue More... | |
DefragTracker * | DefragTrackerDequeue (DefragTrackerStack *) |
remove a tracker from the queue More... | |
Definition in file defrag-stack.h.
#define DQLOCK_DESTROY | ( | q | ) | SCMutexDestroy(&(q)->m) |
Definition at line 65 of file defrag-stack.h.
#define DQLOCK_INIT | ( | q | ) | SCMutexInit(&(q)->m, NULL) |
Definition at line 64 of file defrag-stack.h.
#define DQLOCK_LOCK | ( | q | ) | SCMutexLock(&(q)->m) |
Definition at line 66 of file defrag-stack.h.
#define DQLOCK_MUTEX |
Spinlocks or Mutex for the defrag tracker queues.
Definition at line 33 of file defrag-stack.h.
#define DQLOCK_TRYLOCK | ( | q | ) | SCMutexTrylock(&(q)->m) |
Definition at line 67 of file defrag-stack.h.
#define DQLOCK_UNLOCK | ( | q | ) | SCMutexUnlock(&(q)->m) |
Definition at line 68 of file defrag-stack.h.
typedef struct DefragTrackerStack_ DefragTrackerStack |
DefragTracker* DefragTrackerDequeue | ( | DefragTrackerStack * | q | ) |
remove a tracker from the queue
q | queue |
dt | tracker or NULL if empty list. |
Definition at line 81 of file defrag-stack.c.
References BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerStack_::len, DefragTracker_::lnext, and DefragTrackerStack_::s.
Referenced by DefragHashShutdown().
void DefragTrackerEnqueue | ( | DefragTrackerStack * | q, |
DefragTracker * | dt | ||
) |
add a tracker to a queue
q | queue |
dt | tracker |
Definition at line 57 of file defrag-stack.c.
References BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerStack_::len, DefragTracker_::lnext, and DefragTrackerStack_::s.
Referenced by DefragTrackerMoveToSpare().
void DefragTrackerStackDestroy | ( | DefragTrackerStack * | q | ) |
Destroy a tracker queue.
q | the tracker queue to destroy |
Definition at line 46 of file defrag-stack.c.
References DQLOCK_DESTROY.
DefragTrackerStack* DefragTrackerStackInit | ( | DefragTrackerStack * | ) |
Definition at line 32 of file defrag-stack.c.
References DQLOCK_INIT.
Referenced by DefragInitConfig().