context.c

Include dependency graph for context.c:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "15" [label="stdbool.h" tooltip="stdbool.h"]
    "39" [label="bif.h" tooltip="bif.h"]
    "30" [label="dictionary.h" tooltip="dictionary.h"]
    "16" [label="stdatomic.h" tooltip="stdatomic.h"]
    "40" [label="bitstring.h" tooltip="bitstring.h"]
    "5" [label="atom.h" tooltip="atom.h"]
    "47" [label="trace.h" tooltip="trace.h"]
    "10" [label="assert.h" tooltip="assert.h"]
    "17" [label="synclist.h" tooltip="synclist.h"]
    "42" [label="defaultatoms.h" tooltip="defaultatoms.h"]
    "28" [label="fenv.h" tooltip="fenv.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "6" [label="stdlib.h" tooltip="stdlib.h"]
    "36" [label="valueshashtable.h" tooltip="valueshashtable.h"]
    "45" [label="scheduler.h" tooltip="scheduler.h"]
    "35" [label="exportedfunction.h" tooltip="exportedfunction.h"]
    "1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/context.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/context.c" fillcolor="#BFBFBF"]
    "2" [label="context.h" tooltip="context.h"]
    "22" [label="utils.h" tooltip="utils.h"]
    "7" [label="atom_table.h" tooltip="atom_table.h"]
    "9" [label="term_typedef.h" tooltip="term_typedef.h"]
    "23" [label="stddef.h" tooltip="stddef.h"]
    "11" [label="limits.h" tooltip="limits.h"]
    "46" [label="stacktrace.h" tooltip="stacktrace.h"]
    "24" [label="refc_binary.h" tooltip="refc_binary.h"]
    "20" [label="string.h" tooltip="string.h"]
    "27" [label="mailbox.h" tooltip="mailbox.h"]
    "33" [label="module.h" tooltip="module.h"]
    "19" [label="term.h" tooltip="term.h"]
    "8" [label="erl_nif.h" tooltip="erl_nif.h"]
    "44" [label="opcodes.h" tooltip="opcodes.h"]
    "37" [label="time.h" tooltip="time.h"]
    "29" [label="math.h" tooltip="math.h"]
    "25" [label="resources.h" tooltip="resources.h"]
    "14" [label="smp.h" tooltip="smp.h"]
    "31" [label="erl_nif_priv.h" tooltip="erl_nif_priv.h"]
    "32" [label="sys.h" tooltip="sys.h"]
    "34" [label="atomshashtable.h" tooltip="atomshashtable.h"]
    "43" [label="nifs.h" tooltip="nifs.h"]
    "38" [label="opcodesswitch.h" tooltip="opcodesswitch.h"]
    "41" [label="debug.h" tooltip="debug.h"]
    "3" [label="globalcontext.h" tooltip="globalcontext.h"]
    "21" [label="memory.h" tooltip="memory.h"]
    "18" [label="stdio.h" tooltip="stdio.h"]
    "26" [label="timer_list.h" tooltip="timer_list.h"]
    "13" [label="list.h" tooltip="list.h"]
    "12" [label="inttypes.h" tooltip="inttypes.h"]
    "39" -> "15" [dir=forward tooltip="include"]
    "39" -> "5" [dir=forward tooltip="include"]
    "39" -> "2" [dir=forward tooltip="include"]
    "39" -> "35" [dir=forward tooltip="include"]
    "39" -> "33" [dir=forward tooltip="include"]
    "30" -> "13" [dir=forward tooltip="include"]
    "30" -> "19" [dir=forward tooltip="include"]
    "40" -> "19" [dir=forward tooltip="include"]
    "40" -> "15" [dir=forward tooltip="include"]
    "40" -> "4" [dir=forward tooltip="include"]
    "5" -> "4" [dir=forward tooltip="include"]
    "5" -> "6" [dir=forward tooltip="include"]
    "17" -> "13" [dir=forward tooltip="include"]
    "17" -> "18" [dir=forward tooltip="include"]
    "17" -> "14" [dir=forward tooltip="include"]
    "42" -> "3" [dir=forward tooltip="include"]
    "45" -> "2" [dir=forward tooltip="include"]
    "45" -> "3" [dir=forward tooltip="include"]
    "35" -> "19" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "28" [dir=forward tooltip="include"]
    "1" -> "29" [dir=forward tooltip="include"]
    "1" -> "30" [dir=forward tooltip="include"]
    "1" -> "8" [dir=forward tooltip="include"]
    "1" -> "31" [dir=forward tooltip="include"]
    "1" -> "3" [dir=forward tooltip="include"]
    "1" -> "13" [dir=forward tooltip="include"]
    "1" -> "27" [dir=forward tooltip="include"]
    "1" -> "14" [dir=forward tooltip="include"]
    "1" -> "17" [dir=forward tooltip="include"]
    "1" -> "32" [dir=forward tooltip="include"]
    "1" -> "19" [dir=forward tooltip="include"]
    "1" -> "22" [dir=forward tooltip="include"]
    "1" -> "38" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "13" [dir=forward tooltip="include"]
    "2" -> "27" [dir=forward tooltip="include"]
    "2" -> "14" [dir=forward tooltip="include"]
    "2" -> "19" [dir=forward tooltip="include"]
    "2" -> "26" [dir=forward tooltip="include"]
    "22" -> "23" [dir=forward tooltip="include"]
    "7" -> "5" [dir=forward tooltip="include"]
    "9" -> "10" [dir=forward tooltip="include"]
    "9" -> "11" [dir=forward tooltip="include"]
    "9" -> "12" [dir=forward tooltip="include"]
    "9" -> "4" [dir=forward tooltip="include"]
    "46" -> "2" [dir=forward tooltip="include"]
    "46" -> "33" [dir=forward tooltip="include"]
    "46" -> "19" [dir=forward tooltip="include"]
    "24" -> "15" [dir=forward tooltip="include"]
    "24" -> "6" [dir=forward tooltip="include"]
    "24" -> "13" [dir=forward tooltip="include"]
    "24" -> "25" [dir=forward tooltip="include"]
    "24" -> "14" [dir=forward tooltip="include"]
    "27" -> "15" [dir=forward tooltip="include"]
    "27" -> "13" [dir=forward tooltip="include"]
    "27" -> "14" [dir=forward tooltip="include"]
    "27" -> "9" [dir=forward tooltip="include"]
    "27" -> "22" [dir=forward tooltip="include"]
    "33" -> "15" [dir=forward tooltip="include"]
    "33" -> "4" [dir=forward tooltip="include"]
    "33" -> "5" [dir=forward tooltip="include"]
    "33" -> "7" [dir=forward tooltip="include"]
    "33" -> "34" [dir=forward tooltip="include"]
    "33" -> "2" [dir=forward tooltip="include"]
    "33" -> "35" [dir=forward tooltip="include"]
    "33" -> "3" [dir=forward tooltip="include"]
    "33" -> "19" [dir=forward tooltip="include"]
    "33" -> "36" [dir=forward tooltip="include"]
    "19" -> "15" [dir=forward tooltip="include"]
    "19" -> "4" [dir=forward tooltip="include"]
    "19" -> "18" [dir=forward tooltip="include"]
    "19" -> "6" [dir=forward tooltip="include"]
    "19" -> "20" [dir=forward tooltip="include"]
    "19" -> "21" [dir=forward tooltip="include"]
    "19" -> "24" [dir=forward tooltip="include"]
    "19" -> "22" [dir=forward tooltip="include"]
    "19" -> "9" [dir=forward tooltip="include"]
    "8" -> "9" [dir=forward tooltip="include"]
    "25" -> "6" [dir=forward tooltip="include"]
    "25" -> "8" [dir=forward tooltip="include"]
    "25" -> "13" [dir=forward tooltip="include"]
    "25" -> "21" [dir=forward tooltip="include"]
    "14" -> "15" [dir=forward tooltip="include"]
    "14" -> "16" [dir=forward tooltip="include"]
    "31" -> "2" [dir=forward tooltip="include"]
    "31" -> "21" [dir=forward tooltip="include"]
    "32" -> "3" [dir=forward tooltip="include"]
    "32" -> "33" [dir=forward tooltip="include"]
    "32" -> "4" [dir=forward tooltip="include"]
    "32" -> "37" [dir=forward tooltip="include"]
    "34" -> "5" [dir=forward tooltip="include"]
    "43" -> "5" [dir=forward tooltip="include"]
    "43" -> "2" [dir=forward tooltip="include"]
    "43" -> "35" [dir=forward tooltip="include"]
    "38" -> "33" [dir=forward tooltip="include"]
    "38" -> "10" [dir=forward tooltip="include"]
    "38" -> "20" [dir=forward tooltip="include"]
    "38" -> "39" [dir=forward tooltip="include"]
    "38" -> "40" [dir=forward tooltip="include"]
    "38" -> "41" [dir=forward tooltip="include"]
    "38" -> "42" [dir=forward tooltip="include"]
    "38" -> "35" [dir=forward tooltip="include"]
    "38" -> "43" [dir=forward tooltip="include"]
    "38" -> "44" [dir=forward tooltip="include"]
    "38" -> "45" [dir=forward tooltip="include"]
    "38" -> "22" [dir=forward tooltip="include"]
    "38" -> "27" [dir=forward tooltip="include"]
    "38" -> "46" [dir=forward tooltip="include"]
    "38" -> "47" [dir=forward tooltip="include"]
    "41" -> "2" [dir=forward tooltip="include"]
    "3" -> "4" [dir=forward tooltip="include"]
    "3" -> "5" [dir=forward tooltip="include"]
    "3" -> "7" [dir=forward tooltip="include"]
    "3" -> "8" [dir=forward tooltip="include"]
    "3" -> "13" [dir=forward tooltip="include"]
    "3" -> "14" [dir=forward tooltip="include"]
    "3" -> "17" [dir=forward tooltip="include"]
    "3" -> "19" [dir=forward tooltip="include"]
    "3" -> "26" [dir=forward tooltip="include"]
    "21" -> "8" [dir=forward tooltip="include"]
    "21" -> "9" [dir=forward tooltip="include"]
    "21" -> "22" [dir=forward tooltip="include"]
    "21" -> "4" [dir=forward tooltip="include"]
    "21" -> "6" [dir=forward tooltip="include"]
    "26" -> "15" [dir=forward tooltip="include"]
    "26" -> "4" [dir=forward tooltip="include"]
    "26" -> "13" [dir=forward tooltip="include"]
}

Defines

IMPL_EXECUTE_LOOP
DEFAULT_STACK_SIZE
BYTES_PER_TERM

Functions

static struct ResourceMonitor *context_monitors_handle_terminate(Context *ctx)
Context *context_new(GlobalContext *glb)
void context_destroy(Context *ctx)
void context_process_kill_signal(Context *ctx, struct TermSignal *signal)
void context_process_process_info_request_signal(Context *ctx, struct BuiltInAtomRequestSignal *signal)
bool context_process_signal_trap_answer(Context *ctx, struct TermSignal *signal)
void context_process_flush_monitor_signal(Context *ctx, uint64_t ref_ticks, bool info)
void context_update_flags (Context *ctx, int mask, int value) CLANG_THREAD_SANITIZE_SAFE
size_t context_message_queue_len(Context *ctx)
size_t context_size(Context *ctx)
bool context_get_process_info(Context *ctx, term *out, term atom_key)
int context_link(Context *ctx, term link_pid)
uint64_t context_monitor(Context *ctx, term monitor_pid)
struct ResourceMonitor *context_resource_monitor(Context *ctx, void *resource)
void context_unlink(Context *ctx, term link_pid)