Take a look at...<div><br></div><div><a href="http://www.erlang-factory.com/upload/presentations/377/RickardGreen-NativeInterface.pdf">http://www.erlang-factory.com/upload/presentations/377/RickardGreen-NativeInterface.pdf</a><div>
<br>Native processes are presently not available, but the above pdf may give you insights about how to design your own system.</div><div><br></div><div>Dan.<br><br><div class="gmail_quote">On Wed, Aug 22, 2012 at 1:48 AM, Motiejus Jakštys <span dir="ltr"><<a href="mailto:desired.mta@gmail.com" target="_blank">desired.mta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We are looking for a way to call Erlang functions from linked-in port<br>
driver (or NIF). From documentation I cannot see any way to do it. We<br>
want to call some Erlang functions from Lua code[1], which is executed<br>
in linked-in driver (can be re-implemented in NIF).<br>
<br>
In C node case this would be simple. However, for this C node is a bit<br>
overkill (we want erlualib side effects to be as small as possible).<br>
Linked-in drivers and NIFs are conceptually perfect for it.<br>
<br>
Is there a way to call Erlang function from linked-in driver or NIF<br>
*before* returning the result to emulator?<br>
<br>
Thanks,<br>
Motiejus Jakštys<br>
<br>
[1]: <a href="https://github.com/Motiejus/erlualib" target="_blank">https://github.com/Motiejus/erlualib</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="border-collapse:collapse"><b><font color="#000099" face="arial, helvetica, sans-serif">Daniel Goertzen | Senior Software Engineer</font></b></span><div>
<span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif">Office: 828.610.4596 | Fax: 828.322.5294 | <a href="mailto:dang@networkintegritysystems.com" target="_blank">dang@networkintegritysystems.com</a><br>
<b><font color="#000099">Network Integrity Systems</font> | <font color="#ff0000">We Bring Security To Light™</font></b><font><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">1937 Tate Blvd. SE<u></u><u></u></p>
</div>Hickory, North Carolina, USA 28602</font></font></span><div><span style="border-collapse:collapse"><font><span><br></span></font></span></div><div><span style="border-collapse:collapse"><font><p><i><span style="font-size:10.5pt;font-family:Calibri,sans-serif">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:<a href="http://www.networkintegritysystems.com/" style="color:rgb(17,85,204)" target="_blank">www.networkintegritysystems.com</a>.</span></i></p>
<div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:11pt;font-family:Arial,sans-serif;color:rgb(31,73,125)"><br>__________________________________________<br></span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">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.</span></p>
</div></font></span></div></div><br>
</div></div>