Passing Pointers into and out of drivers

Sean Hinde <>
Thu Sep 13 12:24:10 CEST 2001


Hi,

The neatest solution I have come up with to a driver resource allocation
problem is to pass a pointer to my linked list entry back to erlang as a 32
bit binary. This would then sent back to the driver to access the resource
directly.

I'm not sure if there are any issues with this apart from the obvious one of
it being pretty unsafe in general! Any thoughts anyone? What about endian
issues?

Also, is there any (remotely approved) way to use existing erlang mechanisms
like ets tables within drivers?

Thanks,
Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list