Port.open

You're seeing just the function open, go back to Port module for more information.

Specs

open(name(), list()) :: port()

Opens a port given a tuple name and a list of options.

The module documentation above contains documentation and examples for the supported name values, summarized below:

  • {:spawn, command} - runs an external program. command must contain the program name and optionally a list of arguments separated by space. If passing programs or arguments with space in their name, use the next option.
  • {:spawn_executable, filename} - runs the executable given by the absolute file name filename. Arguments can be passed via the :args option.
  • {:spawn_driver, command} - spawns so-called port drivers.
  • {:fd, fd_in, fd_out} - accesses file descriptors, fd_in and fd_out opened by the VM.

For more information and the list of options, see :erlang.open_port/2.

Inlined by the compiler.