class CallbackRequest

Defined at line 32 of file ../../src/devices/bin/driver_runtime/callback_request.h

Wraps a callback so that it can be added to a list.

Public Methods

void ~CallbackRequest ()

Defined at line 36 of file ../../src/devices/bin/driver_runtime/callback_request.h

void CallbackRequest (RequestType request_type)

Defined at line 45 of file ../../src/devices/bin/driver_runtime/callback_request.h

void SetCallback (driver_runtime::Dispatcher * dispatcher, Callback callback, void * async_operation)

Initializes the callback to be queued.

Sets the dispatcher, and the callback that will be called by |Call|.

|async_operation| is the async_dispatcher_t operation that this callback request manages.

Defined at line 51 of file ../../src/devices/bin/driver_runtime/callback_request.h

void Call (std::unique_ptr<CallbackRequest> callback_request, zx_status_t status)

Calls the callback, returning ownership of the request back the original requester,

Defined at line 66 of file ../../src/devices/bin/driver_runtime/callback_request.h

void SetCallbackReason (zx_status_t callback_reason)

Defined at line 77 of file ../../src/devices/bin/driver_runtime/callback_request.h

bool IsPending ()

Returns whether a callback has been set via |SetCallback| and not yet been called.

Defined at line 80 of file ../../src/devices/bin/driver_runtime/callback_request.h

void Reset ()

Clears the callback request state.

Defined at line 83 of file ../../src/devices/bin/driver_runtime/callback_request.h

bool has_async_operation ()

Returns whether this callback manages an async_dispatcher_t operation.

Defined at line 91 of file ../../src/devices/bin/driver_runtime/callback_request.h

bool holds_async_operation (void * operation)

Returns whether this callback manages |operation|.

Defined at line 94 of file ../../src/devices/bin/driver_runtime/callback_request.h

RequestType request_type ()

Defined at line 98 of file ../../src/devices/bin/driver_runtime/callback_request.h

void * async_operation ()

Defined at line 100 of file ../../src/devices/bin/driver_runtime/callback_request.h

const void * initiating_driver ()

Defined at line 102 of file ../../src/devices/bin/driver_runtime/callback_request.h

driver_runtime::Dispatcher * initiating_dispatcher ()

Defined at line 103 of file ../../src/devices/bin/driver_runtime/callback_request.h

Enumerations

enum RequestType
Name Value
kIrq 0
kWait 1
kTask 2
kOther 3

Defined at line 38 of file ../../src/devices/bin/driver_runtime/callback_request.h