Data Strucures
-
struct AtomsHashTable
-
struct AtomStringIntPair
A structure to represent atom strings and int pairs. Such as {“\x8” “universe”, 42}.
-
struct AVMPackData
-
struct AVMPackInfo
Public Members
-
void (*destructor)(struct AVMPackData *obj, GlobalContext *global)
-
void (*destructor)(struct AVMPackData *obj, GlobalContext *global)
-
struct BuiltInAtomRequestSignal
-
struct BuiltInAtomSignal
-
struct ConstAVMPack
Public Members
-
struct AVMPackData base
-
struct AVMPackData base
-
struct Context
Public Members
-
GlobalContext *global
-
int32_t process_id
-
struct TimerListItem timer_list_head
-
avm_float_t *fr
-
size_t min_heap_size
-
size_t max_heap_size
-
enum HeapGrowthStrategy heap_growth_strategy
-
unsigned long cp
-
const void *saved_ip
-
void *restore_trap_handler
-
native_handler_f native_handler
-
uint64_t reductions
-
unsigned int leader
-
unsigned int has_min_heap_size
-
unsigned int has_max_heap_size
-
bool trap_exit
- enum ContextFlags ATOMIC flags
-
void *platform_data
-
size_t bs_offset
-
GlobalContext *global
-
struct ContextAccumulator
-
struct DictEntry
-
struct ErlNifEnv
-
struct ErlNifResourceTypeInit
Resource callbacks.
Members should be set to 0, 1 or 2 depending on provided callbacks. Callbacks can also be NULL if not used.
Public Members
-
int members
-
ErlNifResourceDtor *dtor
-
ErlNifResourceStop *stop
-
ErlNifResourceDown *down
-
int members
-
struct ExportedFunction
Public Members
-
enum FunctionType type
-
enum FunctionType type
-
struct FprintfFun
-
struct GlobalContext
Public Members
-
int32_t last_process_id
-
struct AtomsHashTable *atoms_table
-
struct ValuesHashTable *atoms_ids_table
-
struct AtomsHashTable *modules_table
-
int loaded_modules_count
-
unsigned long long ref_ticks
- int ATOMIC online_schedulers
-
int running_schedulers
- bool ATOMIC waiting_scheduler
- bool ATOMIC scheduler_stop_all
-
void *platform_data
-
int32_t last_process_id
-
struct Heap
-
struct HeapFragment
-
struct HNode
-
struct IFFRecord
-
struct InMemoryAVMPack
Public Members
-
struct AVMPackData base
-
struct AVMPackData base
-
struct kv_pair
-
struct LineRefOffset
-
struct ListHead
-
struct LiteralEntry
-
struct Mailbox
Public Members
- MailboxMessage *ATOMIC outer_first
-
MailboxMessage *inner_first
-
MailboxMessage *inner_last
-
MailboxMessage *receive_pointer
-
MailboxMessage *receive_pointer_prev
-
struct MailboxMessage
Public Members
-
MailboxMessage *next
-
enum MessageType type
-
union MailboxMessage::[anonymous] [anonymous]
-
MailboxMessage *next
-
struct Message
-
struct Module
Public Members
-
CodeChunk *code
-
void *export_table
-
void *local_table
-
void *atom_table
-
void *fun_table
-
void *str_table
-
size_t str_table_len
-
uint16_t *line_refs
-
struct ModuleFilename *filenames
-
const struct ExportedFunction **imported_funcs
-
void **labels
-
void *literals_data
-
struct LiteralEntry *literals_table
-
int *local_atoms_to_global_table
-
void *module_platform_data
-
int module_index
-
int end_instruction_ii
-
unsigned int free_literals_data
-
CodeChunk *code
-
struct ModuleFilename
-
struct ModuleFunction
-
struct Monitor
A regular monitor or a half link.
-
struct Nif
-
struct RefcBinary
-
struct RefcBinaryAVMPack
-
struct RefSignal
-
struct RegisteredProcess
-
struct ResourceType
A resource type.
we need a reference to the global context as
enif_release_resource
needs to access the synchronized list of refc_binariesPublic Members
-
const char *name
-
GlobalContext *global
-
ErlNifResourceDtor *dtor
-
ErlNifResourceStop *stop
-
ErlNifResourceDown *down
-
const char *name
-
struct SnprintfFun
-
struct SelectEvent
A selectable event.
-
struct SpinLock
Public Members
- int ATOMIC lock
-
struct SyncList
-
struct TempStack
-
struct TermSignal
-
struct TimerList
-
struct TimerListItem
-
struct UnresolvedFunctionCall
Public Members
-
struct ExportedFunction base
-
int module_atom_index
-
int function_atom_index
-
int arity
-
struct ExportedFunction base
-
struct ValuesHashTable
-
enum BitstringFlags
Values:
-
enumerator LittleEndianInteger
-
enumerator SignedInteger
-
enumerator NativeEndianInteger
-
enumerator LittleEndianIntegerMask
-
enumerator LittleEndianInteger
-
enum ContextFlags
Values:
-
enumerator NoFlags
-
enumerator WaitingTimeout
-
enumerator WaitingTimeoutExpired
-
enumerator Running
-
enumerator Ready
-
enumerator Killed
-
enumerator Trap
-
enumerator NoFlags
-
enum DictionaryFunctionResult
Values:
-
enumerator DictionaryOk
-
enumerator DictionaryMemoryAllocFail
-
enumerator DictionaryOk
-
enum ErlNifSelectFlags
enif_select mode flags
ERL_NIF_SELECT_CANCEL which was introduced with OTP-22, is unimplemented.
Values:
-
enumerator ERL_NIF_SELECT_READ
-
enumerator ERL_NIF_SELECT_WRITE
-
enumerator ERL_NIF_SELECT_STOP
-
enumerator ERL_NIF_SELECT_READ
-
enum ExternalTermOpts
Values:
-
enumerator ExternalTermNoOpts
-
enumerator ExternalTermToHeapFragment
-
enumerator ExternalTermNoOpts
-
enum ExternalTermResult
Values:
-
enumerator EXTERNAL_TERM_OK
-
enumerator EXTERNAL_TERM_BAD_ARG
-
enumerator EXTERNAL_TERM_MALLOC
-
enumerator EXTERNAL_TERM_HEAP_ALLOC
-
enumerator EXTERNAL_TERM_OK
-
enum FunctionType
Values:
-
enumerator InvalidFunctionType
-
enumerator NIFFunctionType
-
enumerator UnresolvedFunctionCall
-
enumerator ModuleFunction
-
enumerator BIFFunctionType
-
enumerator GCBIFFunctionType
-
enumerator InvalidFunctionType
-
enum InteropFunctionResult
Values:
-
enumerator InteropOk
-
enumerator InteropMemoryAllocFail
-
enumerator InteropBadArg
-
enumerator InteropOk
-
enum MemoryAllocMode
Values:
-
enumerator MEMORY_NO_SHRINK
-
enumerator MEMORY_CAN_SHRINK
-
enumerator MEMORY_FORCE_SHRINK
-
enumerator MEMORY_NO_GC
-
enumerator MEMORY_NO_SHRINK
-
enum MemoryGCResult
Values:
-
enumerator MEMORY_GC_OK
-
enumerator MEMORY_GC_ERROR_FAILED_ALLOCATION
-
enumerator MEMORY_GC_DENIED_ALLOCATION
-
enumerator MEMORY_GC_OK
-
enum MessageType
Values:
-
enumerator NormalMessage
-
enumerator KillSignal
-
enumerator GCSignal
-
enumerator ProcessInfoRequestSignal
-
enumerator TrapAnswerSignal
-
enumerator TrapExceptionSignal
-
enumerator FlushMonitorSignal
-
enumerator FlushInfoMonitorSignal
-
enumerator NormalMessage