template <>

class WireSyncClientImpl

Defined at line 581 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_virtualization::BalloonController>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_virtualization::BalloonController::GetBalloonSize> GetBalloonSize ()

Get the current and requested number of pages in the memory balloon.

current_num_pages is the number of pages balloon has right now.

requested_num_pages is the desired number of pages in the balloon.

'current_num_pages' corresponds to the 'actual' virtio-balloon config field

'requested_num_pages' corresponds to the 'num_pages' virtio-balloon config field.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus RequestNumPages (uint32_t requested_num_pages)

Request a number of pages to be supplied to the memory balloon.

If `requested_num_pages` is greater than the `current_num_pages` config

value, the guest driver SHOULD provide additional pages to the memory balloon.

If `requested_num_pages` is less than the 'current_num_pages' config value,

the guest driver MAY reclaim pages from the memory balloon.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_virtualization::BalloonController::GetMemStats> GetMemStats ()

Get memory statistics of the guest instance.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.