ets.c
Include dependency graph for ets.c:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"4" [label="stdbool.h" tooltip="stdbool.h"]
"21" [label="refc_binary.h" tooltip="refc_binary.h"]
"29" [label="defaultatoms.h" tooltip="defaultatoms.h"]
"25" [label="atom.h" tooltip="atom.h"]
"16" [label="assert.h" tooltip="assert.h"]
"19" [label="utils.h" tooltip="utils.h"]
"5" [label="synclist.h" tooltip="synclist.h"]
"3" [label="list.h" tooltip="list.h"]
"10" [label="stdint.h" tooltip="stdint.h"]
"11" [label="stdlib.h" tooltip="stdlib.h"]
"23" [label="context.h" tooltip="context.h"]
"31" [label="ets_hashtable.h" tooltip="ets_hashtable.h"]
"13" [label="memory.h" tooltip="memory.h"]
"22" [label="resources.h" tooltip="resources.h"]
"8" [label="term.h" tooltip="term.h"]
"20" [label="stddef.h" tooltip="stddef.h"]
"14" [label="erl_nif.h" tooltip="erl_nif.h"]
"30" [label="defaultatoms.def" tooltip="defaultatoms.def"]
"17" [label="limits.h" tooltip="limits.h"]
"26" [label="atom_table.h" tooltip="atom_table.h"]
"9" [label="sys/types.h" tooltip="sys/types.h"]
"12" [label="string.h" tooltip="string.h"]
"15" [label="term_typedef.h" tooltip="term_typedef.h"]
"24" [label="globalcontext.h" tooltip="globalcontext.h"]
"32" [label="overflow_helpers.h" tooltip="overflow_helpers.h"]
"7" [label="smp.h" tooltip="smp.h"]
"28" [label="timer_list.h" tooltip="timer_list.h"]
"27" [label="mailbox.h" tooltip="mailbox.h"]
"6" [label="stdio.h" tooltip="stdio.h"]
"1" [label="/__w/AtomVM/AtomVM/src/libAtomVM/ets.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/ets.c" fillcolor="#BFBFBF"]
"2" [label="ets.h" tooltip="ets.h"]
"18" [label="inttypes.h" tooltip="inttypes.h"]
"21" -> "4" [dir=forward tooltip="include"]
"21" -> "11" [dir=forward tooltip="include"]
"21" -> "3" [dir=forward tooltip="include"]
"21" -> "22" [dir=forward tooltip="include"]
"29" -> "24" [dir=forward tooltip="include"]
"29" -> "30" [dir=forward tooltip="include"]
"25" -> "10" [dir=forward tooltip="include"]
"25" -> "11" [dir=forward tooltip="include"]
"19" -> "20" [dir=forward tooltip="include"]
"19" -> "6" [dir=forward tooltip="include"]
"19" -> "11" [dir=forward tooltip="include"]
"5" -> "6" [dir=forward tooltip="include"]
"5" -> "3" [dir=forward tooltip="include"]
"5" -> "7" [dir=forward tooltip="include"]
"3" -> "4" [dir=forward tooltip="include"]
"23" -> "24" [dir=forward tooltip="include"]
"23" -> "3" [dir=forward tooltip="include"]
"23" -> "27" [dir=forward tooltip="include"]
"23" -> "7" [dir=forward tooltip="include"]
"23" -> "8" [dir=forward tooltip="include"]
"23" -> "28" [dir=forward tooltip="include"]
"31" -> "24" [dir=forward tooltip="include"]
"31" -> "8" [dir=forward tooltip="include"]
"31" -> "11" [dir=forward tooltip="include"]
"13" -> "10" [dir=forward tooltip="include"]
"13" -> "11" [dir=forward tooltip="include"]
"13" -> "14" [dir=forward tooltip="include"]
"13" -> "15" [dir=forward tooltip="include"]
"13" -> "19" [dir=forward tooltip="include"]
"22" -> "11" [dir=forward tooltip="include"]
"22" -> "14" [dir=forward tooltip="include"]
"22" -> "3" [dir=forward tooltip="include"]
"22" -> "13" [dir=forward tooltip="include"]
"8" -> "9" [dir=forward tooltip="include"]
"8" -> "4" [dir=forward tooltip="include"]
"8" -> "10" [dir=forward tooltip="include"]
"8" -> "6" [dir=forward tooltip="include"]
"8" -> "11" [dir=forward tooltip="include"]
"8" -> "12" [dir=forward tooltip="include"]
"8" -> "13" [dir=forward tooltip="include"]
"8" -> "21" [dir=forward tooltip="include"]
"8" -> "19" [dir=forward tooltip="include"]
"8" -> "15" [dir=forward tooltip="include"]
"14" -> "15" [dir=forward tooltip="include"]
"26" -> "4" [dir=forward tooltip="include"]
"26" -> "25" [dir=forward tooltip="include"]
"15" -> "16" [dir=forward tooltip="include"]
"15" -> "17" [dir=forward tooltip="include"]
"15" -> "18" [dir=forward tooltip="include"]
"15" -> "10" [dir=forward tooltip="include"]
"24" -> "10" [dir=forward tooltip="include"]
"24" -> "25" [dir=forward tooltip="include"]
"24" -> "26" [dir=forward tooltip="include"]
"24" -> "14" [dir=forward tooltip="include"]
"24" -> "2" [dir=forward tooltip="include"]
"24" -> "3" [dir=forward tooltip="include"]
"24" -> "27" [dir=forward tooltip="include"]
"24" -> "7" [dir=forward tooltip="include"]
"24" -> "5" [dir=forward tooltip="include"]
"24" -> "8" [dir=forward tooltip="include"]
"24" -> "28" [dir=forward tooltip="include"]
"32" -> "8" [dir=forward tooltip="include"]
"32" -> "10" [dir=forward tooltip="include"]
"7" -> "4" [dir=forward tooltip="include"]
"28" -> "4" [dir=forward tooltip="include"]
"28" -> "10" [dir=forward tooltip="include"]
"28" -> "3" [dir=forward tooltip="include"]
"27" -> "4" [dir=forward tooltip="include"]
"27" -> "3" [dir=forward tooltip="include"]
"27" -> "15" [dir=forward tooltip="include"]
"27" -> "19" [dir=forward tooltip="include"]
"1" -> "2" [dir=forward tooltip="include"]
"1" -> "23" [dir=forward tooltip="include"]
"1" -> "29" [dir=forward tooltip="include"]
"1" -> "31" [dir=forward tooltip="include"]
"1" -> "3" [dir=forward tooltip="include"]
"1" -> "13" [dir=forward tooltip="include"]
"1" -> "32" [dir=forward tooltip="include"]
"1" -> "8" [dir=forward tooltip="include"]
"2" -> "3" [dir=forward tooltip="include"]
"2" -> "5" [dir=forward tooltip="include"]
"2" -> "8" [dir=forward tooltip="include"]
}](../../../_images/graphviz-3d2e12966973d97066368dc71bd4c07293dbcf3c.png)
Defines
-
SMP_RDLOCK(table) smp_rwlock_rdlock(table->lock)
-
SMP_WRLOCK(table) smp_rwlock_wrlock(table->lock)
-
SMP_UNLOCK(table) smp_rwlock_unlock(table->lock)
Typedefs
-
typedef enum TableAccessType TableAccessType
Enums
Functions
-
static void ets_delete_all_tables(struct Ets *ets, GlobalContext *global)
-
static struct EtsTable *ets_get_table_by_ref(struct Ets *ets, uint64_t ref, TableAccessType access_type)
-
static struct EtsTable *ets_get_table_by_name(struct Ets *ets, term name, TableAccessType access_type)
-
void ets_init(struct Ets *ets)
-
void ets_destroy(struct Ets *ets, GlobalContext *global)
-
EtsErrorCode ets_create_table(term name, bool is_named, EtsTableType table_type, EtsAccessType access_type, size_t keypos, term *ret, Context *ctx)
-
static void ets_table_destroy(struct EtsTable *table, GlobalContext *global)
-
static void ets_delete_tables_internal(struct Ets *ets, ets_table_filter_pred pred, void *data, GlobalContext *global)
-
void ets_delete_owned_tables(struct Ets *ets, int32_t process_id, GlobalContext *global)
-
static EtsErrorCode ets_table_lookup(struct EtsTable *ets_table, term key, term *ret, Context *ctx)
-
static bool operation_to_tuple4(term operation, size_t default_pos, term *position, term *increment, term *threshold, term *set_value)
-
struct EtsTable
Collaboration diagram for EtsTable: