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"]
    "5" [label="atom.h" tooltip="atom.h"]
    "32" [label="atomshashtable.h" tooltip="atomshashtable.h"]
    "38" [label="bif.h" tooltip="bif.h"]
    "39" [label="bitstring.h" tooltip="bitstring.h"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c" fillcolor="#BFBFBF"]
    "2" [label="context.h" tooltip="context.h"]
    "40" [label="debug.h" tooltip="debug.h"]
    "41" [label="defaultatoms.h" tooltip="defaultatoms.h"]
    "28" [label="dictionary.h" tooltip="dictionary.h"]
    "7" [label="erl_nif.h" tooltip="erl_nif.h"]
    "29" [label="erl_nif_priv.h" tooltip="erl_nif_priv.h"]
    "33" [label="exportedfunction.h" tooltip="exportedfunction.h"]
    "3" [label="globalcontext.h" tooltip="globalcontext.h"]
    "11" [label="list.h" tooltip="list.h"]
    "25" [label="mailbox.h" tooltip="mailbox.h"]
    "19" [label="memory.h" tooltip="memory.h"]
    "31" [label="module.h" tooltip="module.h"]
    "42" [label="nifs.h" tooltip="nifs.h"]
    "43" [label="opcodes.h" tooltip="opcodes.h"]
    "36" [label="opcodesswitch.h" tooltip="opcodesswitch.h"]
    "22" [label="refc_binary.h" tooltip="refc_binary.h"]
    "23" [label="resources.h" tooltip="resources.h"]
    "44" [label="scheduler.h" tooltip="scheduler.h"]
    "12" [label="smp.h" tooltip="smp.h"]
    "45" [label="stacktrace.h" tooltip="stacktrace.h"]
    "15" [label="synclist.h" tooltip="synclist.h"]
    "30" [label="sys.h" tooltip="sys.h"]
    "17" [label="term.h" tooltip="term.h"]
    "8" [label="term_typedef.h" tooltip="term_typedef.h"]
    "24" [label="timer_list.h" tooltip="timer_list.h"]
    "46" [label="trace.h" tooltip="trace.h"]
    "20" [label="utils.h" tooltip="utils.h"]
    "34" [label="valueshashtable.h" tooltip="valueshashtable.h"]
    "37" [label="assert.h" tooltip="assert.h"]
    "26" [label="fenv.h" tooltip="fenv.h"]
    "10" [label="inttypes.h" tooltip="inttypes.h"]
    "9" [label="limits.h" tooltip="limits.h"]
    "27" [label="math.h" tooltip="math.h"]
    "14" [label="stdatomic.h" tooltip="stdatomic.h"]
    "13" [label="stdbool.h" tooltip="stdbool.h"]
    "21" [label="stddef.h" tooltip="stddef.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "16" [label="stdio.h" tooltip="stdio.h"]
    "6" [label="stdlib.h" tooltip="stdlib.h"]
    "18" [label="string.h" tooltip="string.h"]
    "35" [label="time.h" tooltip="time.h"]
    "5" -> "4" [dir=forward tooltip="include"]
    "5" -> "6" [dir=forward tooltip="include"]
    "32" -> "5" [dir=forward tooltip="include"]
    "38" -> "13" [dir=forward tooltip="include"]
    "38" -> "5" [dir=forward tooltip="include"]
    "38" -> "2" [dir=forward tooltip="include"]
    "38" -> "33" [dir=forward tooltip="include"]
    "38" -> "31" [dir=forward tooltip="include"]
    "39" -> "17" [dir=forward tooltip="include"]
    "39" -> "13" [dir=forward tooltip="include"]
    "39" -> "4" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "26" [dir=forward tooltip="include"]
    "1" -> "27" [dir=forward tooltip="include"]
    "1" -> "28" [dir=forward tooltip="include"]
    "1" -> "7" [dir=forward tooltip="include"]
    "1" -> "29" [dir=forward tooltip="include"]
    "1" -> "3" [dir=forward tooltip="include"]
    "1" -> "11" [dir=forward tooltip="include"]
    "1" -> "25" [dir=forward tooltip="include"]
    "1" -> "12" [dir=forward tooltip="include"]
    "1" -> "15" [dir=forward tooltip="include"]
    "1" -> "30" [dir=forward tooltip="include"]
    "1" -> "36" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "11" [dir=forward tooltip="include"]
    "2" -> "25" [dir=forward tooltip="include"]
    "2" -> "12" [dir=forward tooltip="include"]
    "2" -> "17" [dir=forward tooltip="include"]
    "2" -> "24" [dir=forward tooltip="include"]
    "40" -> "2" [dir=forward tooltip="include"]
    "41" -> "3" [dir=forward tooltip="include"]
    "28" -> "11" [dir=forward tooltip="include"]
    "28" -> "17" [dir=forward tooltip="include"]
    "7" -> "8" [dir=forward tooltip="include"]
    "29" -> "2" [dir=forward tooltip="include"]
    "29" -> "19" [dir=forward tooltip="include"]
    "33" -> "17" [dir=forward tooltip="include"]
    "3" -> "4" [dir=forward tooltip="include"]
    "3" -> "5" [dir=forward tooltip="include"]
    "3" -> "7" [dir=forward tooltip="include"]
    "3" -> "11" [dir=forward tooltip="include"]
    "3" -> "12" [dir=forward tooltip="include"]
    "3" -> "15" [dir=forward tooltip="include"]
    "3" -> "17" [dir=forward tooltip="include"]
    "3" -> "24" [dir=forward tooltip="include"]
    "25" -> "13" [dir=forward tooltip="include"]
    "25" -> "11" [dir=forward tooltip="include"]
    "25" -> "12" [dir=forward tooltip="include"]
    "25" -> "8" [dir=forward tooltip="include"]
    "25" -> "20" [dir=forward tooltip="include"]
    "19" -> "7" [dir=forward tooltip="include"]
    "19" -> "8" [dir=forward tooltip="include"]
    "19" -> "20" [dir=forward tooltip="include"]
    "19" -> "4" [dir=forward tooltip="include"]
    "19" -> "6" [dir=forward tooltip="include"]
    "31" -> "13" [dir=forward tooltip="include"]
    "31" -> "4" [dir=forward tooltip="include"]
    "31" -> "5" [dir=forward tooltip="include"]
    "31" -> "32" [dir=forward tooltip="include"]
    "31" -> "2" [dir=forward tooltip="include"]
    "31" -> "33" [dir=forward tooltip="include"]
    "31" -> "3" [dir=forward tooltip="include"]
    "31" -> "17" [dir=forward tooltip="include"]
    "31" -> "34" [dir=forward tooltip="include"]
    "42" -> "5" [dir=forward tooltip="include"]
    "42" -> "2" [dir=forward tooltip="include"]
    "42" -> "33" [dir=forward tooltip="include"]
    "36" -> "31" [dir=forward tooltip="include"]
    "36" -> "37" [dir=forward tooltip="include"]
    "36" -> "18" [dir=forward tooltip="include"]
    "36" -> "38" [dir=forward tooltip="include"]
    "36" -> "39" [dir=forward tooltip="include"]
    "36" -> "40" [dir=forward tooltip="include"]
    "36" -> "41" [dir=forward tooltip="include"]
    "36" -> "33" [dir=forward tooltip="include"]
    "36" -> "42" [dir=forward tooltip="include"]
    "36" -> "43" [dir=forward tooltip="include"]
    "36" -> "44" [dir=forward tooltip="include"]
    "36" -> "20" [dir=forward tooltip="include"]
    "36" -> "25" [dir=forward tooltip="include"]
    "36" -> "45" [dir=forward tooltip="include"]
    "36" -> "46" [dir=forward tooltip="include"]
    "22" -> "13" [dir=forward tooltip="include"]
    "22" -> "6" [dir=forward tooltip="include"]
    "22" -> "11" [dir=forward tooltip="include"]
    "22" -> "23" [dir=forward tooltip="include"]
    "22" -> "12" [dir=forward tooltip="include"]
    "23" -> "6" [dir=forward tooltip="include"]
    "23" -> "7" [dir=forward tooltip="include"]
    "23" -> "11" [dir=forward tooltip="include"]
    "44" -> "2" [dir=forward tooltip="include"]
    "44" -> "3" [dir=forward tooltip="include"]
    "12" -> "13" [dir=forward tooltip="include"]
    "12" -> "14" [dir=forward tooltip="include"]
    "45" -> "2" [dir=forward tooltip="include"]
    "45" -> "31" [dir=forward tooltip="include"]
    "45" -> "17" [dir=forward tooltip="include"]
    "15" -> "11" [dir=forward tooltip="include"]
    "15" -> "16" [dir=forward tooltip="include"]
    "15" -> "12" [dir=forward tooltip="include"]
    "30" -> "3" [dir=forward tooltip="include"]
    "30" -> "31" [dir=forward tooltip="include"]
    "30" -> "4" [dir=forward tooltip="include"]
    "30" -> "35" [dir=forward tooltip="include"]
    "17" -> "13" [dir=forward tooltip="include"]
    "17" -> "4" [dir=forward tooltip="include"]
    "17" -> "16" [dir=forward tooltip="include"]
    "17" -> "6" [dir=forward tooltip="include"]
    "17" -> "18" [dir=forward tooltip="include"]
    "17" -> "19" [dir=forward tooltip="include"]
    "17" -> "22" [dir=forward tooltip="include"]
    "17" -> "20" [dir=forward tooltip="include"]
    "17" -> "8" [dir=forward tooltip="include"]
    "8" -> "9" [dir=forward tooltip="include"]
    "8" -> "10" [dir=forward tooltip="include"]
    "8" -> "4" [dir=forward tooltip="include"]
    "24" -> "13" [dir=forward tooltip="include"]
    "24" -> "4" [dir=forward tooltip="include"]
    "24" -> "11" [dir=forward tooltip="include"]
    "20" -> "21" [dir=forward tooltip="include"]
}

Defines

IMPL_EXECUTE_LOOP
DEFAULT_STACK_SIZE
BYTES_PER_TERM

Functions

static void 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)