class Server

Defined at line 50 of file ../../src/devices/block/drivers/core/server.h

Public Methods

void Server (fidl::ServerEnd<fidl_examples_routing_echo::Echo> server_end)

Defined at line 15 of file ../../sdk/lib/driver/async-helpers/cpp/tests/test.cc

void EchoString (EchoStringRequest & request, EchoStringCompleter::Sync & completer)

Defined at line 19 of file ../../sdk/lib/driver/async-helpers/cpp/tests/test.cc

void Sync ()

Helps ensure the server binding has been created so we don't shutdown the dispatcher too soon.

Defined at line 24 of file ../../sdk/lib/driver/async-helpers/cpp/tests/test.cc

zx::result<std::unique_ptr<Server>> Create (ddk::BlockProtocolClient * bp, std::optional<fuchsia_storage_block::wire::BlockOffsetMapping> mapping)

Creates a new Server.

Defined at line 217 of file ../../src/devices/block/drivers/core/server.cc

void ~Server ()

This will block until all outstanding messages have been processed.

Defined at line 616 of file ../../src/devices/block/drivers/core/server.cc

zx_status_t Serve ()

Starts the Server using the current thread

Defined at line 552 of file ../../src/devices/block/drivers/core/server.cc

zx::result<zx::fifo> GetFifo ()

Defined at line 253 of file ../../src/devices/block/drivers/core/server.cc

zx::result<vmoid_t> AttachVmo (zx::vmo vmo)

Defined at line 184 of file ../../src/devices/block/drivers/core/server.cc

void Close ()

Defined at line 594 of file ../../src/devices/block/drivers/core/server.cc

void GetFifo (GetFifoCompleter::Sync & completer)

Defined at line 263 of file ../../src/devices/block/drivers/core/server.cc

void AttachVmo (AttachVmoRequestView request, AttachVmoCompleter::Sync & completer)

Defined at line 198 of file ../../src/devices/block/drivers/core/server.cc

void Close (CloseCompleter::Sync & completer)

Defined at line 601 of file ../../src/devices/block/drivers/core/server.cc

void TxnEnd ()

Updates the total number of pending requests.

Defined at line 208 of file ../../src/devices/block/drivers/core/server.cc

void FinishTransaction (zx_status_t status, reqid_t reqid, groupid_t group)

Wrapper around "SendResponse", as a convenience

for finishing both one-shot and group-based transactions.

Defined at line 127 of file ../../src/devices/block/drivers/core/server.cc

void SendResponse (const BlockFifoResponse & response)

Send the given response to the client.

Defined at line 98 of file ../../src/devices/block/drivers/core/server.cc

void Shutdown ()

Initiates a shutdown of the server. When this finishes, the server might still be running, but

it should terminate shortly.

Defined at line 618 of file ../../src/devices/block/drivers/core/server.cc

bool WillTerminate ()

Returns true if the server is about to terminate.

Defined at line 620 of file ../../src/devices/block/drivers/core/server.cc