[erlang-questions] Determine if a binary is ref-counted in port driver code

Tim Watson watson.timothy@REDACTED
Fri May 13 14:56:58 CEST 2011

On 13 May 2011 13:18, Gustav Simonsson
<gustav.simonsson@REDACTED> wrote:
> This post talks about how the SysIOVec field in ErlIOVec gets its value depending
> on the properties of the binaries in the io list:
> http://www1.erlang.org/pipermail/erlang-questions/2002-October/005859.html
> and the reply
> http://www1.erlang.org/pipermail/erlang-questions/2002-October/005860.html
> It's from 2002 so the behaviour might be different, but the code
> referenced in the post does checks on the binaries in the io list in order to determine what todo.
> See erts_write_to_port (line 1085) and io_list_vec_len (line 999) in
> https://github.com/erlang/otp/blob/dev/erts/emulator/beam/io.c

Brilliant - I'll go check those out.


More information about the erlang-questions mailing list