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

Motiejus Jakštys <>
Wed Aug 22 17:43:04 CEST 2012

On Wed, Aug 22, 2012 at 10:16:51AM -0500, Daniel Goertzen wrote:
> 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.

Thanks! This is exactly what I am looking for:

void enif_nproc_schedule_ecall(ErlNifEnv *proc_env,
        ERL_NIF_TERM module,
        ERL_NIF_TERM function,
        ERL_NIF_TERM arguments,
        void (*result_func)(ErlNifEnv *proc_env,
            void *state,
            ErlNProcResultType result_type,
            ERL_NIF_TERM result));

And the concept seems to be very tempting. And talking about this (from
the one slide before the last):

    When will these features show up?
        –Hopefully R15, but this is no promise

Any update? :)

For now, we decided to stick to NIFs and execute C-to-Erlang calls in a
separate thread.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120822/99828157/attachment.bin>

More information about the erlang-questions mailing list