genode/repos/os/include
Christian Prochaska b0935ef9b2 VFS: nonblocking interface
The VFS library can be used in single-threaded or multi-threaded
environments and depending on that, signals are handled by the same thread
which uses the VFS library or possibly by a different thread. If a VFS
plugin needs to block to wait for a signal, there is currently no way
which works reliably in both environments.

For this reason, this commit makes the interface of the VFS library
nonblocking, similar to the File_system session interface.

The most important changes are:

- Directories are created and opened with the 'opendir()' function and the
  directory entries are read with the recently introduced 'queue_read()'
  and 'complete_read()' functions.

- Symbolic links are created and opened with the 'openlink()' function and
  the link target is read with the 'queue_read()' and 'complete_read()'
  functions and written with the 'write()' function.

- The 'write()' function does not wait for signals anymore. This can have
  the effect that data written by a VFS library user has not been
  processed by a file system server yet when the library user asks for the
  size of the file or closes it (both done with RPC functions at the file
  system server). For this reason, a user of the VFS library should
  request synchronization before calling 'stat()' or 'close()'. To make
  sure that a file system server has processed all write request packets
  which a client submitted before the synchronization request,
  synchronization is now requested at the file system server with a
  synchronization packet instead of an RPC function. Because of this
  change, the synchronization interface of the VFS library is now split
  into 'queue_sync()' and 'complete_sync()' functions.

Fixes #2399
2017-08-28 16:49:38 +02:00
..
audio_in_session API documentation refinements 2017-05-31 13:16:21 +02:00
audio_out_session API documentation refinements 2017-05-31 13:16:21 +02:00
blit Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
block Replace Quota_exceeded by Insufficient_ram_quota 2017-05-31 13:16:05 +02:00
block_session API documentation refinements 2017-05-31 13:16:21 +02:00
cli_monitor Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
decorator Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
file_system file system: track content via version counter 2017-08-17 10:59:43 +02:00
file_system_session VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
framebuffer_session API documentation refinements 2017-05-31 13:16:21 +02:00
gpio Streamline exception types 2017-05-31 13:16:07 +02:00
gpio_session API documentation refinements 2017-05-31 13:16:21 +02:00
gpu Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
init Adaptation to init refactoring 2017-03-24 16:19:56 +01:00
input Streamline exception types 2017-05-31 13:16:07 +02:00
input_session API documentation refinements 2017-05-31 13:16:21 +02:00
ldso Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
loader_session API documentation refinements 2017-05-31 13:16:21 +02:00
mixer Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
net Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
nic Replace Quota_exceeded by Insufficient_ram_quota 2017-05-31 13:16:05 +02:00
nic_bridge Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
nic_session API documentation refinements 2017-05-31 13:16:21 +02:00
nitpicker_gfx Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
nitpicker_session API documentation refinements 2017-05-31 13:16:21 +02:00
os Translate buffer-exceeded exception in Session_requester 2017-06-29 12:00:03 +02:00
packet_stream_rx Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
packet_stream_tx Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
platform_device Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
platform_session Annotate session interfaces with CAP_QUOTA 2017-05-31 13:16:04 +02:00
ram_fs file system: use Id_space instead of Node_handle_registry 2017-08-17 10:59:43 +02:00
regulator Streamline exception types 2017-05-31 13:16:07 +02:00
regulator_session API documentation refinements 2017-05-31 13:16:21 +02:00
report_rom Streamline exception types 2017-05-31 13:16:07 +02:00
report_session API documentation refinements 2017-05-31 13:16:21 +02:00
rtc_session Optional session label for Rtc connection constructor 2017-05-31 13:16:22 +02:00
spec riscv: ISA-1.9.1 and GCC-6.3.0 adaptions 2017-05-31 13:16:24 +02:00
terminal terminal: add Cell_array destructor 2017-05-31 13:16:12 +02:00
terminal_session API documentation refinements 2017-05-31 13:16:21 +02:00
timer os/timer: interpolate time via timestamps 2017-05-31 13:16:11 +02:00
timer_session timer connection: fast initial calibration 2017-08-23 14:08:37 +02:00
trace Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
uart_session API documentation refinements 2017-05-31 13:16:21 +02:00
usb usb: use if-else in packet_handler 2017-06-19 12:35:57 +02:00
usb_session API documentation refinements 2017-05-31 13:16:21 +02:00
util Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
vfs VFS: nonblocking interface 2017-08-28 16:49:38 +02:00