Driver question

Sean Hinde <>
Wed Aug 15 17:44:37 CEST 2001


Hi,

I want to do someting like this:

Allocate some storage in my driver, pass the data to erlang, and then, if
the data goes out of scope at an erlang level have the storage automatically
freed out of the driver by garbage collection.

Maybe driver binaries exhibit this effect already? Or do they need to be
freed in the driver as well as Erlang?

There is a part of the inet_drv where the refc value of the binary is
checked to see if anyone else still needs it, which then frees it if no-one
else does, but this still implies some cleanup routine run regularly in the
driver.

Thoughts anyone? Is it a sensible thing to try to do?

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