[erlang-questions] calling Erlang functions from linked-in driver

Motiejus Jakštys <>
Wed Aug 22 08:48:13 CEST 2012


We are looking for a way to call Erlang functions from linked-in port
driver (or NIF). From documentation I cannot see any way to do it. We
want to call some Erlang functions from Lua code[1], which is executed
in linked-in driver (can be re-implemented in NIF).

In C node case this would be simple. However, for this C node is a bit
overkill (we want erlualib side effects to be as small as possible).
Linked-in drivers and NIFs are conceptually perfect for it.

Is there a way to call Erlang function from linked-in driver or NIF
*before* returning the result to emulator?

Motiejus Jakštys

[1]: https://github.com/Motiejus/erlualib

More information about the erlang-questions mailing list