genode/repos/gems/src/lib/vfs/pipe
Ehmry - 54776f36eb VFS/pipe: add Tupfile 2019-11-28 14:04:14 +01:00
..
README New VFS plugin for emulating POSIX pipes 2019-11-19 14:54:13 +01:00
Tupfile VFS/pipe: add Tupfile 2019-11-28 14:04:14 +01:00
plugin.cc New VFS plugin for emulating POSIX pipes 2019-11-19 14:54:13 +01:00
target.mk New VFS plugin for emulating POSIX pipes 2019-11-19 14:54:13 +01:00

README

The VFS pipe plugin exposes a control file for creating pipes and a set of pipe
directories. Opening and reading the "/new" returns a relative path to a
directory. That directory represents a pipe and contains an "in" and "out" file
for writing and reading respectively to the pipe.

Reads and writes are non-blocking and will complete short operations without
error, with the exception of reads on an empty pipe, which return READ_QUEUED.
The read and write capacity of a pipe may be queried by stat'ing the size of
"out" and "in" files.

When all "in" and "out" handles on a pipe as well as the initial handle on "new"
are closed, the pipe is destroyed.