exportedfunction.h

Include dependency graph for exportedfunction.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "9" [label="erl_nif.h" tooltip="erl_nif.h"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" fillcolor="#BFBFBF"]
    "16" [label="list.h" tooltip="list.h"]
    "8" [label="memory.h" tooltip="memory.h"]
    "15" [label="refc_binary.h" tooltip="refc_binary.h"]
    "17" [label="resources.h" tooltip="resources.h"]
    "18" [label="smp.h" tooltip="smp.h"]
    "2" [label="term.h" tooltip="term.h"]
    "10" [label="term_typedef.h" tooltip="term_typedef.h"]
    "13" [label="utils.h" tooltip="utils.h"]
    "12" [label="inttypes.h" tooltip="inttypes.h"]
    "11" [label="limits.h" tooltip="limits.h"]
    "19" [label="stdatomic.h" tooltip="stdatomic.h"]
    "3" [label="stdbool.h" tooltip="stdbool.h"]
    "14" [label="stddef.h" tooltip="stddef.h"]
    "4" [label="stdint.h" tooltip="stdint.h"]
    "5" [label="stdio.h" tooltip="stdio.h"]
    "6" [label="stdlib.h" tooltip="stdlib.h"]
    "7" [label="string.h" tooltip="string.h"]
    "9" -> "10" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "8" -> "9" [dir=forward tooltip="include"]
    "8" -> "10" [dir=forward tooltip="include"]
    "8" -> "13" [dir=forward tooltip="include"]
    "8" -> "4" [dir=forward tooltip="include"]
    "8" -> "6" [dir=forward tooltip="include"]
    "15" -> "3" [dir=forward tooltip="include"]
    "15" -> "6" [dir=forward tooltip="include"]
    "15" -> "16" [dir=forward tooltip="include"]
    "15" -> "17" [dir=forward tooltip="include"]
    "15" -> "18" [dir=forward tooltip="include"]
    "17" -> "6" [dir=forward tooltip="include"]
    "17" -> "9" [dir=forward tooltip="include"]
    "17" -> "16" [dir=forward tooltip="include"]
    "18" -> "3" [dir=forward tooltip="include"]
    "18" -> "19" [dir=forward tooltip="include"]
    "2" -> "3" [dir=forward tooltip="include"]
    "2" -> "4" [dir=forward tooltip="include"]
    "2" -> "5" [dir=forward tooltip="include"]
    "2" -> "6" [dir=forward tooltip="include"]
    "2" -> "7" [dir=forward tooltip="include"]
    "2" -> "8" [dir=forward tooltip="include"]
    "2" -> "15" [dir=forward tooltip="include"]
    "2" -> "13" [dir=forward tooltip="include"]
    "2" -> "10" [dir=forward tooltip="include"]
    "10" -> "11" [dir=forward tooltip="include"]
    "10" -> "12" [dir=forward tooltip="include"]
    "10" -> "4" [dir=forward tooltip="include"]
    "13" -> "14" [dir=forward tooltip="include"]
}

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

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "3" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c"]
    "2" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h"]
    "7" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" fillcolor="#BFBFBF"]
    "13" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c"]
    "4" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c"]
    "8" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h"]
    "5" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c"]
    "16" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h"]
    "6" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h"]
    "9" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h"]
    "17" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c"]
    "18" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h"]
    "14" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c"]
    "15" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c"]
    "11" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c"]
    "10" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h"]
    "12" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h"]
    "2" -> "3" [dir=back tooltip="include"]
    "2" -> "4" [dir=back tooltip="include"]
    "2" -> "5" [dir=back tooltip="include"]
    "2" -> "6" [dir=back tooltip="include"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "8" [dir=back tooltip="include"]
    "1" -> "16" [dir=back tooltip="include"]
    "1" -> "6" [dir=back tooltip="include"]
    "1" -> "9" [dir=back tooltip="include"]
    "1" -> "18" [dir=back tooltip="include"]
    "8" -> "2" [dir=back tooltip="include"]
    "8" -> "4" [dir=back tooltip="include"]
    "8" -> "5" [dir=back tooltip="include"]
    "8" -> "6" [dir=back tooltip="include"]
    "8" -> "9" [dir=back tooltip="include"]
    "8" -> "10" [dir=back tooltip="include"]
    "8" -> "12" [dir=back tooltip="include"]
    "16" -> "4" [dir=back tooltip="include"]
    "16" -> "5" [dir=back tooltip="include"]
    "16" -> "6" [dir=back tooltip="include"]
    "16" -> "17" [dir=back tooltip="include"]
    "6" -> "7" [dir=back tooltip="include"]
    "6" -> "4" [dir=back tooltip="include"]
    "9" -> "5" [dir=back tooltip="include"]
    "18" -> "13" [dir=back tooltip="include"]
    "18" -> "5" [dir=back tooltip="include"]
    "18" -> "17" [dir=back tooltip="include"]
    "10" -> "6" [dir=back tooltip="include"]
    "10" -> "11" [dir=back tooltip="include"]
    "12" -> "7" [dir=back tooltip="include"]
    "12" -> "13" [dir=back tooltip="include"]
    "12" -> "4" [dir=back tooltip="include"]
    "12" -> "5" [dir=back tooltip="include"]
    "12" -> "14" [dir=back tooltip="include"]
    "12" -> "15" [dir=back tooltip="include"]
}

Defines

TYPEDEF_MODULE
EXPORTED_FUNCTION_TO_BIF(func)
EXPORTED_FUNCTION_TO_GCBIF(func)
EXPORTED_FUNCTION_TO_NIF(func)
EXPORTED_FUNCTION_TO_UNRESOLVED_FUNCTION_CALL(func)
EXPORTED_FUNCTION_TO_MODULE_FUNCTION(func)

Typedefs

typedef struct Module Module
typedef term (*BifImpl0)(Context *ctx)
typedef term (*BifImpl1)(Context *ctx, term arg1)
typedef term (*BifImpl2)(Context *ctx, term arg1, term arg2)
typedef term (*GCBifImpl1)(Context *ctx, int live, term arg1)
typedef term (*GCBifImpl2)(Context *ctx, int live, term arg1, term arg2)
typedef term (*GCBifImpl3)(Context *ctx, int live, term arg1, term arg2, term arg3)
typedef term (*NifImpl)(Context *ctx, int argc, term argv[])

Enums

enum FunctionType

Values:

enumerator InvalidFunctionType
enumerator NIFFunctionType
enumerator UnresolvedFunctionCall
enumerator ModuleFunction
enumerator BIFFunctionType
enumerator GCBIFFunctionType
struct ExportedFunction

Public Members

enum FunctionType type
struct Bif

Collaboration diagram for Bif:

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

Public Members

struct ExportedFunction base
BifImpl0 bif0_ptr
BifImpl1 bif1_ptr
BifImpl2 bif2_ptr
union Bif
struct GCBif

Collaboration diagram for GCBif:

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

Public Members

struct ExportedFunction base
GCBifImpl1 gcbif1_ptr
GCBifImpl2 gcbif2_ptr
GCBifImpl3 gcbif3_ptr
union GCBif
struct Nif

Collaboration diagram for Nif:

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

Public Members

struct ExportedFunction base
NifImpl nif_ptr
struct UnresolvedFunctionCall

Collaboration diagram for UnresolvedFunctionCall:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "2" [label="ExportedFunction" tooltip="ExportedFunction"]
    "1" [label="UnresolvedFunctionCall" tooltip="UnresolvedFunctionCall" fillcolor="#BFBFBF"]
    "1" -> "2" [dir=forward tooltip="usage"]
}

Public Members

struct ExportedFunction base
int module_atom_index
int function_atom_index
int arity
struct ModuleFunction

Collaboration diagram for ModuleFunction:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "8" [label="AtomsHashTable" tooltip="AtomsHashTable"]
    "2" [label="ExportedFunction" tooltip="ExportedFunction"]
    "4" [label="GlobalContext" tooltip="GlobalContext"]
    "9" [label="HNode" tooltip="HNode"]
    "5" [label="ListHead" tooltip="ListHead"]
    "13" [label="LiteralEntry" tooltip="LiteralEntry"]
    "3" [label="Module" tooltip="Module"]
    "12" [label="ModuleFilename" tooltip="ModuleFilename"]
    "1" [label="ModuleFunction" tooltip="ModuleFunction" fillcolor="#BFBFBF"]
    "6" [label="SpinLock" tooltip="SpinLock"]
    "7" [label="SyncList" tooltip="SyncList"]
    "11" [label="TimerList" tooltip="TimerList"]
    "10" [label="ValuesHashTable" tooltip="ValuesHashTable"]
    "8" -> "9" [dir=forward tooltip="usage"]
    "4" -> "5" [dir=forward tooltip="usage"]
    "4" -> "6" [dir=forward tooltip="usage"]
    "4" -> "7" [dir=forward tooltip="usage"]
    "4" -> "8" [dir=forward tooltip="usage"]
    "4" -> "10" [dir=forward tooltip="usage"]
    "4" -> "3" [dir=forward tooltip="usage"]
    "4" -> "11" [dir=forward tooltip="usage"]
    "9" -> "9" [dir=forward tooltip="usage"]
    "5" -> "5" [dir=forward tooltip="usage"]
    "3" -> "4" [dir=forward tooltip="usage"]
    "3" -> "12" [dir=forward tooltip="usage"]
    "3" -> "5" [dir=forward tooltip="usage"]
    "3" -> "2" [dir=forward tooltip="usage"]
    "3" -> "13" [dir=forward tooltip="usage"]
    "1" -> "2" [dir=forward tooltip="usage"]
    "1" -> "3" [dir=forward tooltip="usage"]
    "7" -> "5" [dir=forward tooltip="usage"]
    "11" -> "5" [dir=forward tooltip="usage"]
    "10" -> "9" [dir=forward tooltip="usage"]
}

Public Members

struct ExportedFunction base
Module *target
int label