template <>
class WireServer
Defined at line 3413 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_virtualization::MemController>|
and |::fidl::ServerEnd
<
::fuchsia_virtualization::MemController>|).
Public Methods
void GetMemSize (GetMemSizeCompleter::Sync & completer)
Get the configured region size, usable region size, plugged size and requestd size
block_size is the size and the alignment in bytes of a memory block. Cannot change.
region_size is the size of device-managed memory region in bytes. Cannot change.
usable_region_size is the size of the usable device-managed memory region. Can grow up to
the region_size. Can only shrink due to VIRTIO_MEM_REQ_UNPLUG_ALL requests.
plugged_size is the amount of plugged memory in bytes within the usable device-managed
memory region.
requested_size is the requested amount of plugged memory within the usable device-managed
memory region.
void RequestSize (::fuchsia_virtualization::wire::MemControllerRequestSizeRequest * request, RequestSizeCompleter::Sync & completer)
Update the requested size to plug or unplug memory
The driver SHOULD react to resize requests from the device (requested_size in the device
configuration changed) by (un)plugging memory blocks.
void WireServer ()
Defined at line 3416 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 3417 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h