erl_nif_priv.h

Include dependency graph for erl_nif_priv.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "8" [label="stdbool.h" tooltip="stdbool.h"]
    "1" [label="/__w/AtomVM/AtomVM/src/libAtomVM/erl_nif_priv.h" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/erl_nif_priv.h" fillcolor="#BFBFBF"]
    "24" [label="refc_binary.h" tooltip="refc_binary.h"]
    "5" [label="atom.h" tooltip="atom.h"]
    "11" [label="assert.h" tooltip="assert.h"]
    "22" [label="utils.h" tooltip="utils.h"]
    "16" [label="synclist.h" tooltip="synclist.h"]
    "15" [label="list.h" tooltip="list.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "6" [label="stdlib.h" tooltip="stdlib.h"]
    "2" [label="context.h" tooltip="context.h"]
    "21" [label="memory.h" tooltip="memory.h"]
    "25" [label="resources.h" tooltip="resources.h"]
    "19" [label="term.h" tooltip="term.h"]
    "23" [label="stddef.h" tooltip="stddef.h"]
    "9" [label="erl_nif.h" tooltip="erl_nif.h"]
    "12" [label="limits.h" tooltip="limits.h"]
    "7" [label="atom_table.h" tooltip="atom_table.h"]
    "20" [label="string.h" tooltip="string.h"]
    "10" [label="term_typedef.h" tooltip="term_typedef.h"]
    "3" [label="globalcontext.h" tooltip="globalcontext.h"]
    "18" [label="smp.h" tooltip="smp.h"]
    "27" [label="timer_list.h" tooltip="timer_list.h"]
    "26" [label="mailbox.h" tooltip="mailbox.h"]
    "17" [label="stdio.h" tooltip="stdio.h"]
    "14" [label="ets.h" tooltip="ets.h"]
    "13" [label="inttypes.h" tooltip="inttypes.h"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "21" [dir=forward tooltip="include"]
    "24" -> "8" [dir=forward tooltip="include"]
    "24" -> "6" [dir=forward tooltip="include"]
    "24" -> "15" [dir=forward tooltip="include"]
    "24" -> "25" [dir=forward tooltip="include"]
    "5" -> "4" [dir=forward tooltip="include"]
    "5" -> "6" [dir=forward tooltip="include"]
    "22" -> "23" [dir=forward tooltip="include"]
    "22" -> "17" [dir=forward tooltip="include"]
    "22" -> "6" [dir=forward tooltip="include"]
    "16" -> "17" [dir=forward tooltip="include"]
    "16" -> "15" [dir=forward tooltip="include"]
    "16" -> "18" [dir=forward tooltip="include"]
    "15" -> "8" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "15" [dir=forward tooltip="include"]
    "2" -> "26" [dir=forward tooltip="include"]
    "2" -> "18" [dir=forward tooltip="include"]
    "2" -> "19" [dir=forward tooltip="include"]
    "2" -> "27" [dir=forward tooltip="include"]
    "21" -> "4" [dir=forward tooltip="include"]
    "21" -> "6" [dir=forward tooltip="include"]
    "21" -> "9" [dir=forward tooltip="include"]
    "21" -> "10" [dir=forward tooltip="include"]
    "21" -> "22" [dir=forward tooltip="include"]
    "25" -> "6" [dir=forward tooltip="include"]
    "25" -> "9" [dir=forward tooltip="include"]
    "25" -> "15" [dir=forward tooltip="include"]
    "25" -> "21" [dir=forward tooltip="include"]
    "19" -> "8" [dir=forward tooltip="include"]
    "19" -> "4" [dir=forward tooltip="include"]
    "19" -> "17" [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" -> "10" [dir=forward tooltip="include"]
    "9" -> "10" [dir=forward tooltip="include"]
    "7" -> "8" [dir=forward tooltip="include"]
    "7" -> "5" [dir=forward tooltip="include"]
    "10" -> "11" [dir=forward tooltip="include"]
    "10" -> "12" [dir=forward tooltip="include"]
    "10" -> "13" [dir=forward tooltip="include"]
    "10" -> "4" [dir=forward tooltip="include"]
    "3" -> "4" [dir=forward tooltip="include"]
    "3" -> "5" [dir=forward tooltip="include"]
    "3" -> "7" [dir=forward tooltip="include"]
    "3" -> "9" [dir=forward tooltip="include"]
    "3" -> "14" [dir=forward tooltip="include"]
    "3" -> "15" [dir=forward tooltip="include"]
    "3" -> "26" [dir=forward tooltip="include"]
    "3" -> "18" [dir=forward tooltip="include"]
    "3" -> "16" [dir=forward tooltip="include"]
    "3" -> "19" [dir=forward tooltip="include"]
    "3" -> "27" [dir=forward tooltip="include"]
    "18" -> "8" [dir=forward tooltip="include"]
    "27" -> "8" [dir=forward tooltip="include"]
    "27" -> "4" [dir=forward tooltip="include"]
    "27" -> "15" [dir=forward tooltip="include"]
    "26" -> "8" [dir=forward tooltip="include"]
    "26" -> "15" [dir=forward tooltip="include"]
    "26" -> "10" [dir=forward tooltip="include"]
    "26" -> "22" [dir=forward tooltip="include"]
    "14" -> "15" [dir=forward tooltip="include"]
    "14" -> "16" [dir=forward tooltip="include"]
    "14" -> "19" [dir=forward tooltip="include"]
}

This graph shows which files directly or indirectly include erl_nif_priv.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "8" [label="/__w/AtomVM/AtomVM/src/libAtomVM/refc_binary.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/refc_binary.c"]
    "1" [label="/__w/AtomVM/AtomVM/src/libAtomVM/erl_nif_priv.h" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/erl_nif_priv.h" fillcolor="#BFBFBF"]
    "2" [label="/__w/AtomVM/AtomVM/src/libAtomVM/context.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/context.c"]
    "4" [label="/__w/AtomVM/AtomVM/src/libAtomVM/memory.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/memory.c"]
    "9" [label="/__w/AtomVM/AtomVM/src/libAtomVM/resources.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/resources.c"]
    "3" [label="/__w/AtomVM/AtomVM/src/libAtomVM/globalcontext.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/globalcontext.c"]
    "5" [label="/__w/AtomVM/AtomVM/src/libAtomVM/otp_socket.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/otp_socket.c"]
    "6" [label="/__w/AtomVM/AtomVM/src/libAtomVM/otp_ssl.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/otp_ssl.c"]
    "7" [label="/__w/AtomVM/AtomVM/src/libAtomVM/posix_nifs.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/posix_nifs.c"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "3" [dir=back tooltip="include"]
    "1" -> "4" [dir=back tooltip="include"]
    "1" -> "5" [dir=back tooltip="include"]
    "1" -> "6" [dir=back tooltip="include"]
    "1" -> "7" [dir=back tooltip="include"]
    "1" -> "8" [dir=back tooltip="include"]
    "1" -> "9" [dir=back tooltip="include"]
}

Functions

_Static_assert (offsetof(struct ErlNifEnv, global)==offsetof(struct Context, global) ? 1 :0, "ErlNifEnv.global doesn't match Context.global")
_Static_assert (offsetof(struct ErlNifEnv, heap)==offsetof(struct Context, heap) ? 1 :0, "ErlNifEnv.heap doesn't match Context.heap")
_Static_assert (offsetof(struct ErlNifEnv, stack_pointer)==offsetof(struct Context, e) ? 1 :0, "ErlNifEnv.stack_pointer doesn't match Context.e")
_Static_assert (offsetof(struct ErlNifEnv, x)==offsetof(struct Context, x) ? 1 :0, "ErlNifEnv.x doesn't match Context.x")
static inline ErlNifEnv *erl_nif_env_from_context(Context *ctx)
static inline bool erl_nif_env_is_context(ErlNifEnv *env)
static inline void erl_nif_env_partial_init_from_globalcontext(ErlNifEnv *env, GlobalContext *global)
struct ErlNifEnv
#include <erl_nif_priv.h>

Collaboration diagram for ErlNifEnv:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "22" [label="SpinLock" tooltip="SpinLock"]
    "15" [label="ResourceType" tooltip="ResourceType"]
    "16" [label="Module" tooltip="Module"]
    "7" [label="ListHead" tooltip="ListHead"]
    "3" [label="HeapFragment" tooltip="HeapFragment"]
    "13" [label="RefcBinaryQueueItem" tooltip="RefcBinaryQueueItem"]
    "4" [label="GlobalContext" tooltip="GlobalContext"]
    "18" [label="ModuleFilename" tooltip="ModuleFilename"]
    "5" [label="Ets" tooltip="Ets"]
    "12" [label="HNodeGroup" tooltip="HNodeGroup"]
    "21" [label="TimerList" tooltip="TimerList"]
    "19" [label="LiteralEntry" tooltip="LiteralEntry"]
    "9" [label="MailboxMessage" tooltip="MailboxMessage"]
    "2" [label="Heap" tooltip="Heap"]
    "8" [label="MessageQueueItem" tooltip="MessageQueueItem"]
    "20" [label="AtomsHashTable" tooltip="AtomsHashTable"]
    "14" [label="RefcBinary" tooltip="RefcBinary"]
    "1" [label="ErlNifEnv" tooltip="ErlNifEnv" fillcolor="#BFBFBF"]
    "10" [label="AtomTable" tooltip="AtomTable"]
    "17" [label="ExportedFunction" tooltip="ExportedFunction"]
    "6" [label="SyncList" tooltip="SyncList"]
    "11" [label="HNode" tooltip="HNode"]
    "15" -> "4" [dir=forward tooltip="usage"]
    "15" -> "7" [dir=forward tooltip="usage"]
    "16" -> "17" [dir=forward tooltip="usage"]
    "16" -> "18" [dir=forward tooltip="usage"]
    "16" -> "19" [dir=forward tooltip="usage"]
    "16" -> "7" [dir=forward tooltip="usage"]
    "7" -> "7" [dir=forward tooltip="usage"]
    "3" -> "3" [dir=forward tooltip="usage"]
    "13" -> "14" [dir=forward tooltip="usage"]
    "13" -> "13" [dir=forward tooltip="usage"]
    "4" -> "5" [dir=forward tooltip="usage"]
    "4" -> "8" [dir=forward tooltip="usage"]
    "4" -> "10" [dir=forward tooltip="usage"]
    "4" -> "13" [dir=forward tooltip="usage"]
    "4" -> "6" [dir=forward tooltip="usage"]
    "4" -> "16" [dir=forward tooltip="usage"]
    "4" -> "20" [dir=forward tooltip="usage"]
    "4" -> "21" [dir=forward tooltip="usage"]
    "4" -> "22" [dir=forward tooltip="usage"]
    "4" -> "7" [dir=forward tooltip="usage"]
    "5" -> "6" [dir=forward tooltip="usage"]
    "12" -> "11" [dir=forward tooltip="usage"]
    "12" -> "12" [dir=forward tooltip="usage"]
    "21" -> "7" [dir=forward tooltip="usage"]
    "9" -> "9" [dir=forward tooltip="usage"]
    "2" -> "3" [dir=forward tooltip="usage"]
    "8" -> "9" [dir=forward tooltip="usage"]
    "8" -> "8" [dir=forward tooltip="usage"]
    "20" -> "11" [dir=forward tooltip="usage"]
    "14" -> "15" [dir=forward tooltip="usage"]
    "14" -> "7" [dir=forward tooltip="usage"]
    "1" -> "2" [dir=forward tooltip="usage"]
    "1" -> "4" [dir=forward tooltip="usage"]
    "10" -> "11" [dir=forward tooltip="usage"]
    "10" -> "12" [dir=forward tooltip="usage"]
    "6" -> "7" [dir=forward tooltip="usage"]
    "11" -> "11" [dir=forward tooltip="usage"]
    "11" -> "2" [dir=forward tooltip="usage"]
}

Public Members

GlobalContext *global
Heap heap
term *stack_pointer
term x[2]