genode/repos/os/src/server/ram_block
Norman Feske 2208220c12 block session: remove Block::Session::Operations
This patch modernizes the 'Block::Session::info' interface. Instead of
using out parameters, the 'init' RPC function returns a compound 'Info'
object now. The rather complicated 'Operations' struct is replaced by
a 'writeable' attribute in the 'Info' object.

Fixes #3275
2019-05-03 13:53:12 +02:00
..
main.cc block session: remove Block::Session::Operations 2019-05-03 13:53:12 +02:00
README Consistently name block components 2019-01-14 12:34:39 +01:00
target.mk Consistently name block components 2019-01-14 12:34:39 +01:00

RAM block device is an implementation of the block-session interface
running as a client of a RAM session. It either populates the RAM dataspace
by using a ROM dataspace, similiar to loop devices. For example to use
an ISO file the component has to be configured as follows:

! <config file="image.iso" block_size="2048"/>

To use a empty RAM dataspace that is 256MiB large and has a block size
of 4KiB the configuration looks like this:

! <config size="256M" block_size="4096"/>

Either 'size' or 'file' has to specified. If both are declared the 'file'
attribute is soley evaluated.