[erlang-questions] ErlDrvTermData and memory obligations

Paul Davis <>
Sun May 17 06:10:29 CEST 2009


After reading about the ErlDrvTermData format I'm a bit confused on
what the memory liveliness obligations are for my linked in driver.
Ie, for the ErlDrvTermData types that take a pointer argument
(ERL_DRV_DOUBLE and ERL_DRV_BUF2BINARY specifically) are there any
requirements for my program to make sure the pointed-to memory lives
for some amount of time after a call to driver_send_term()? Or am I
free to destroy these buffers once that call returns?

Thanks,
Paul Davis



More information about the erlang-questions mailing list