port.c
Include dependency graph for port.c:
Functions
-
void port_send_message(GlobalContext *glb, term pid, term msg)
Send a message to a given pid. This function must be called from a driver’s native handler.
- Parameters:
glb – the global context
pid – the pid of the process to send a message to.
msg – the message to send.
-
void port_send_message_nolock(GlobalContext *glb, term pid, term msg)
Send a message to a given pid. This function must be called from a driver’s native handler after a target context has been locked.
- Parameters:
glb – the global context
pid – the pid of the process to send a message to.
msg – the message to send.
-
void port_send_message_from_task(GlobalContext *glb, term pid, term msg)
Send a message to a given pid. This function can be called from a driver’s task, such as an event callback.
- Parameters:
glb – the global context
pid – the pid of the process to send a message to.
msg – the message to send.
-
term port_heap_create_tuple2(Heap *heap, term a, term b)
-
term port_heap_create_tuple3(Heap *heap, term a, term b, term c)
-
term port_heap_create_tuple_n(Heap *heap, size_t num_terms, term *terms)
-
term port_heap_create_error_tuple(Heap *heap, term reason)
-
term port_heap_create_sys_error_tuple(Heap *heap, term syscall, int errno)
-
term port_heap_create_ok_tuple(Heap *heap, term t)
-
term port_heap_create_reply(Heap *heap, term ref, term payload)
-
enum GenMessageParseResult port_parse_gen_message(term msg, GenMessage *gen_message)