|
suricata
|
#include "suricata-common.h"#include "thread-storage.h"#include "util-storage.h"#include "util-unittest.h"
Go to the source code of this file.
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) |
| SCThreadStorageId | SCThreadStorageRegister (const char *name, void(*Free)(void *)) |
| void | SCRegisterThreadStorageTests (void) |
Variables | |
| const StorageEnum | storage_type = STORAGE_THREAD |
| void SCRegisterThreadStorageTests | ( | void | ) |
Definition at line 202 of file thread-storage.c.
References UtRegisterTest().

| void SCThreadFreeStorage | ( | ThreadVars * | tv | ) |
Definition at line 45 of file thread-storage.c.
References SCStorageFreeAll(), SCThreadStorageSize(), ThreadVars_::storage, storage_type, and tv.

| void SCThreadFreeStorageById | ( | ThreadVars * | tv, |
| SCThreadStorageId | id | ||
| ) |
Definition at line 40 of file thread-storage.c.
References SCStorageFreeById(), ThreadVars_::storage, storage_type, and tv.

| void* SCThreadGetStorageById | ( | const ThreadVars * | tv, |
| SCThreadStorageId | id | ||
| ) |
Definition at line 30 of file thread-storage.c.
References SCStorageGetById(), ThreadVars_::storage, storage_type, and tv.

| 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.

| 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.

| unsigned int SCThreadStorageSize | ( | void | ) |
Definition at line 25 of file thread-storage.c.
References SCStorageGetSize(), and storage_type.
Referenced by SCThreadFreeStorage(), and TmThreadCreate().


| const StorageEnum storage_type = STORAGE_THREAD |
Definition at line 23 of file thread-storage.c.
Referenced by SCThreadFreeStorage(), SCThreadFreeStorageById(), SCThreadGetStorageById(), SCThreadSetStorageById(), SCThreadStorageRegister(), and SCThreadStorageSize().