[erlang-questions] Proper type for passing pointer to/from linked-in driver?

Rapsey <>
Thu Aug 11 07:34:39 CEST 2011


That's how I did it in my old driver. Then I switched to a NIF and life was
so much easier with resources. You should think about using a NIF instead of
a driver.


Sergej

On Thu, Aug 11, 2011 at 1:42 AM, Joel Meyer <> wrote:

> What's the recommended way to pass a pointer between a linked-in driver and
> the beam? I can cast it to a uint64_t and use ErlDrvUInt64 (and do the
> reverse when sending it back to the driver), but maybe there's a better way?
>
> Thanks,
> Joel
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110811/b5519256/attachment.html>


More information about the erlang-questions mailing list