class MessagePacket
Defined at line 30 of file ../../src/devices/bin/driver_runtime/message_packet.h
Holds the contents of a message written to a channel.
TODO(https://fxbug.dev/42167912): we should consider recycling deleted packets.
Public Methods
MessagePacketOwner Create (fbl::RefPtr<fdf_arena_t> arena, void * data, uint32_t num_bytes, zx_handle_t * handles, uint32_t num_handles)
static
Defined at line 15 of file ../../src/devices/bin/driver_runtime/message_packet.cc
zx_txid_t get_txid ()
fdf_channel_call treats the leading bytes of the payload as a transaction id of type
fdf_txid_t.
Defined at line 42 of file ../../src/devices/bin/driver_runtime/message_packet.h
void set_txid (fdf_txid_t txid)
Defined at line 49 of file ../../src/devices/bin/driver_runtime/message_packet.h
fbl::RefPtr<fdf_arena_t> arena ()
Returns a reference to the arena.
The message packet retains a reference to correctly destruct itself.
Defined at line 56 of file ../../src/devices/bin/driver_runtime/message_packet.h
void CopyOut (fdf_arena_t ** out_arena, void ** out_data, uint32_t * out_num_bytes, zx_handle_t ** out_handles, uint32_t * out_num_handles)
Copies the message contents to the parameters provided.
Returns ownership of an arena, the data and handles.
Defined at line 56 of file ../../src/devices/bin/driver_runtime/message_packet.cc
uint32_t num_bytes ()
Defined at line 57 of file ../../src/devices/bin/driver_runtime/message_packet.h
uint32_t num_handles ()
Defined at line 58 of file ../../src/devices/bin/driver_runtime/message_packet.h
Friends
class MessagePacketDestroyer