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

Daniel Goertzen <>
Wed Aug 22 17:16:51 CEST 2012


Take a look at...

http://www.erlang-factory.com/upload/presentations/377/RickardGreen-NativeInterface.pdf

Native processes are presently not available, but the above pdf may give
you insights about how to design your own system.

Dan.

On Wed, Aug 22, 2012 at 1:48 AM, Motiejus Jakštys <>wrote:

> Hi,
>
> 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?
>
> Thanks,
> Motiejus Jakštys
>
> [1]: https://github.com/Motiejus/erlualib
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



-- 
*Daniel Goertzen | Senior Software Engineer*
Office: 828.610.4596 | Fax: 828.322.5294 | 
*Network Integrity Systems | We Bring Security To Light™*

1937 Tate Blvd. SE****
Hickory, North Carolina, USA 28602

*Network Integrity Systems’ INTERCEPTOR™ Optical Network Security System is
a Smart-PDS™ that ensures superior protection and cost effectiveness of
classified networks.  For more information, visit our website at:
www.networkintegritysystems.com.*


__________________________________________
INTERCEPTOR™ Optical Network Security System is made in the USA for the
USA. Although not an export controlled item, because of the role it plays
in the assurance of the safety and integrity of National Security
Information, Network Integrity Systems (NIS) is committed to compliance
with the U.S. Export Administration Act. Accordingly, NIS will not ship
INTERCEPTOR products to certain foreign government end users without U.S.
government approval and will refuse transactions with individuals or
entities that have been denied export privileges.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120822/376b56ca/attachment.html>


More information about the erlang-questions mailing list