Skip to main content

Module c_interface

Module c_interface 

Source

Structs§

BlockServer
Callbacks
InterfaceAdapter
Implements callback_interface::Interface using C callbacks.
Orchestrator
PartitionInfo
Request
UnownedVmo
cbindgen:no-export

Functions§

block_server_delete
Safety
block_server_delete_async
Safety
block_server_new
Creates a new block server. Returns nullptr on failure (e.g. if the thread to run the block server failed to start).
block_server_send_reply
Safety
block_server_serve
Serves the Volume protocol for this server. handle is consumed.
block_server_session_release
Safety
block_server_session_run
Safety
block_server_thread
Runs the main loop to handle FIDL requests for the block server. Blocks until the server is shutting down.
block_server_thread_release
Called to release the thread. This must always be called on the thread spawned by Callbacks::start_thread, regardless of whether block_server_thread is called or not.

Type Aliases§

Session
cbindgen:no-export