suricata
thread-storage.h File Reference
#include "threadvars.h"
Include dependency graph for thread-storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SCThreadStorageId
 

Typedefs

typedef struct SCThreadStorageId SCThreadStorageId
 

Functions

unsigned int SCThreadStorageSize (void)
 
void * SCThreadGetStorageById (const ThreadVars *tv, SCThreadStorageId id)
 
int SCThreadSetStorageById (ThreadVars *tv, SCThreadStorageId id, void *ptr)
 
void SCThreadFreeStorageById (ThreadVars *tv, SCThreadStorageId id)
 
void SCThreadFreeStorage (ThreadVars *tv)
 
void SCRegisterThreadStorageTests (void)
 
SCThreadStorageId SCThreadStorageRegister (const char *name, void(*Free)(void *))
 

Typedef Documentation

◆ SCThreadStorageId

Thread wrapper around storage API.

Function Documentation

◆ SCRegisterThreadStorageTests()

void SCRegisterThreadStorageTests ( void  )

Definition at line 202 of file thread-storage.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ SCThreadFreeStorage()

void SCThreadFreeStorage ( ThreadVars tv)

Definition at line 45 of file thread-storage.c.

References SCStorageFreeAll(), SCThreadStorageSize(), ThreadVars_::storage, storage_type, and tv.

Here is the call graph for this function:

◆ SCThreadFreeStorageById()

void SCThreadFreeStorageById ( ThreadVars tv,
SCThreadStorageId  id 
)

Definition at line 40 of file thread-storage.c.

References SCStorageFreeById(), ThreadVars_::storage, storage_type, and tv.

Here is the call graph for this function:

◆ SCThreadGetStorageById()

void* SCThreadGetStorageById ( const ThreadVars tv,
SCThreadStorageId  id 
)

Definition at line 30 of file thread-storage.c.

References SCStorageGetById(), ThreadVars_::storage, storage_type, and tv.

Here is the call graph for this function:

◆ SCThreadSetStorageById()

int SCThreadSetStorageById ( ThreadVars tv,
SCThreadStorageId  id,
void *  ptr 
)

Definition at line 35 of file thread-storage.c.

References SCStorageSetById(), ThreadVars_::storage, storage_type, and tv.

Here is the call graph for this function:

◆ SCThreadStorageRegister()

SCThreadStorageId SCThreadStorageRegister ( const char *  name,
void(*)(void *)  Free 
)

Definition at line 51 of file thread-storage.c.

References SCThreadStorageId::id, name, SCStorageRegister(), and storage_type.

Here is the call graph for this function:

◆ SCThreadStorageSize()

unsigned int SCThreadStorageSize ( void  )

Definition at line 25 of file thread-storage.c.

References SCStorageGetSize(), and storage_type.

Referenced by SCThreadFreeStorage(), and TmThreadCreate().

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