struct zx_protocol_device

Defined at line 84 of file ../../src/lib/ddk/include/lib/ddk/device.h

@

# The Device Protocol

Device drivers implement a set of hooks (methods) to support the

operations that may be done on the devices that they publish.

These are described below, including the action that is taken

by the default implementation that is used for each hook if the

driver does not provide its own implementation.

Public Members

uint64_t version
zx_status_t (*)(void *, uint32_t, void *) get_protocol
void (*)(void *) init
void (*)(void *) unbind
void (*)(void *) release
void (*)(void *, uint8_t, bool, uint8_t) suspend
void (*)(void *, fidl_incoming_msg_t, device_fidl_txn_t) message
void (*)(void *, void *) child_pre_release
void (*)(void *) made_visible