class MapperSession

Defined at line 6222 of file fidling/gen/sdk/fidl/fuchsia.storage.block/fuchsia.storage.block/hlcpp/fuchsia/storage/block/cpp/fidl.h

Represents an active driver mapping session.

Public Methods

void ~MapperSession ()
void Close (CloseCallback callback)

Terminates the connection.

After calling `Close`, the client must not send any other requests.

Servers, after sending the status response, should close the connection

regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent

to calling `Close` without knowing when the close has completed or its

status.

void CreateVmo (uint64_t key, uint64_t size, ::fuchsia::storage::block::CreateVmoOptions options, CreateVmoCallback callback)

Creates a pager-backed VMO of `size` bytes associated with `key`.

Page faults on this VMO are handled directly by the driver mapper.

void OpenChildSession (::fidl::InterfaceRequest< ::fuchsia::storage::block::MapperSession> session, ::zx::vmo mapping_vmo, uint64_t parent_key, ::zx::port port, ::zx::vmo delivery_queue, OpenChildSessionCallback callback)

Opens a child mapper session whose reads map through `parent_key` in the parent session.

When a parent session is closed, all child sessions opened from it are closed as well.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class MapperSession_Stub