Skip to main content

Crate libasync_sys

Crate libasync_sys 

Source

Structs§

async_dispatcher
async_guest_bell_trap
Holds context for a bell trap and its handler.
async_irq
async_ops
async_ops_v1
Operations supported by |ASYNC_OPS_V1|.
async_ops_v2
async_ops_v3
async_ops_v4
async_paged_vmo
Holds content for a paged request packet receiver and its handler.
async_receiver
Holds content for a packet receiver and its handler.
async_sequence_id
A dispatcher-specific sequence identifier, which identifies a set of actions with a total ordering of execution: each subsequent action will always observe side-effects from previous actions, if the thread(s) performing those actions have the same sequence identifier.
async_state_t
Private state owned by the asynchronous dispatcher. This allows the dispatcher to associate a small amount of state with pending asynchronous operations without having to allocate additional heap storage of its own.
async_task
Holds context for a task and its handler.
async_wait
Holds context for an asynchronous wait operation and its handler.

Constants§

ASYNC_OPS_V1
ASYNC_OPS_V2
ASYNC_OPS_V3
ASYNC_OPS_V4

Functions§

async_acquire_shared_ref
If supported, acquires a shared dispatcher reference for this dispatcher.
async_begin_wait
Begins asynchronously waiting for an object to receive one or more signals specified in |wait|. Invokes the handler when the wait completes.
async_cancel_task
Cancels the task associated with |task|.
async_cancel_wait
Cancels the wait associated with |wait|.
async_check_sequence_id
Checks that the the dispatcher-specific sequence identifier of the currently executing task is equal to |sequence_id|.
async_create_paged_vmo
Create a pager owned VMO.
async_detach_paged_vmo
Detach ownership of VMO from pager.
async_get_default_dispatcher
Gets the currently active async dispatcher for the current thread, if set.
async_get_sequence_id
Gets the dispatcher-specific sequence identifier of the currently executing task.
async_now
Returns the current time in the dispatcher’s timebase. For most loops, this is generally obtained from |ZX_CLOCK_MONOTONIC| but certain loops may use a different tiembase, notably for testing.
async_post_task
Posts a task to run on or after its deadline following all posted tasks with lesser or equal deadlines.
async_queue_packet
Enqueues a packet of data for delivery to a receiver.
async_release_shared_ref
Releases a shared dispatcher reference for this dispatcher.
async_set_default_dispatcher
Sets the current thread’s default asynchronous dispatcher interface. May be set to |NULL| if this thread doesn’t have a default dispatcher.
async_set_guest_bell_trap
Sets a bell trap in the guest to be handled asynchronously via a handler.

Type Aliases§

async_dispatcher_t
Dispatcher interface for performing asynchronous operations. There may be multiple implementations of this interface.
async_guest_bell_trap_handler_t
Handles an asynchronous trap access.
async_guest_bell_trap_t
Holds context for a bell trap and its handler.
async_irq_t
async_ops_t
async_ops_version_t
Asynchronous dispatcher interface.
async_paged_vmo_handler_t
Handles port packets containing page requests.
async_paged_vmo_t
Holds content for a paged request packet receiver and its handler.
async_receiver_handler_t
Handles receipt of packets containing user supplied data.
async_receiver_t
Holds content for a packet receiver and its handler.
async_sequence_id_t
A dispatcher-specific sequence identifier, which identifies a set of actions with a total ordering of execution: each subsequent action will always observe side-effects from previous actions, if the thread(s) performing those actions have the same sequence identifier.
async_task_handler_t
Handles execution of a posted task.
async_task_t
Holds context for a task and its handler.
async_wait_handler_t
Handles completion of asynchronous wait operations.
async_wait_t
Holds context for an asynchronous wait operation and its handler.