View Source prx_drv (prx v1.0.0)

Summary

Functions

Make a synchronous call into the port driver.

Send standard input to process.

Functions

call(PrxDrv, Pipeline, Call, Argv)

-spec call(pid(), [prx:pid_t()], atom(), list()) -> any().

Make a synchronous call into the port driver.

The list of available calls and their arguments can be found here:

https://github.com/msantos/alcove#alcove-1

For example, to directly call alcove:execve/5:

  call(Drv, Pipeline, execve,
   ["/bin/ls", ["/bin/ls", "-al"], ["HOME=/home/foo"]])

stdin(PrxDrv, Pipeline, Buf)

-spec stdin(pid(), [prx:pid_t()], iodata()) -> ok.

Send standard input to process.

stop(PrxDrv)

-spec stop(pid()) -> ok.