template <>
class Server
Defined at line 1181 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_messaging.h
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 (RequestSizeRequest & 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 Server ()
Defined at line 1184 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_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 ~Server ()
Defined at line 1185 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_messaging.h