class MessageGroup
Defined at line 28 of file ../../src/devices/block/drivers/core/message-group.h
A MessageGroup represents a set of responses we expect to receive from the
underlying block device that should correspond to one response sent to the client.
Public Methods
zx_status_t ExpectResponses (int response_count, int request_count, std::optional<reqid_t> request_id)
Add `response_count` responses to the message, which correspond to `request_count` requests
sent by the client. If request_id is not std::nullopt, will also mark this MessageGroup as
ready to respond to the client. If group is `kNoGroup, the MessageGroup will take ownership of
itself and free itself once the response has been sent.
Defined at line 12 of file ../../src/devices/block/drivers/core/message-group.cc
void MessageGroup (Server & server, groupid_t group)
Defined at line 30 of file ../../src/devices/block/drivers/core/message-group.h
void MessageGroup (const MessageGroup & )
Defined at line 36 of file ../../src/devices/block/drivers/core/message-group.h
MessageGroup & operator= (const MessageGroup & )
Defined at line 37 of file ../../src/devices/block/drivers/core/message-group.h
void Complete (zx_status_t status)
Completes the MessageGroup and sends |response_| to the client. If either of |response_| or
|status| have a non-OK status, send that back.
Defined at line 39 of file ../../src/devices/block/drivers/core/message-group.cc
bool StatusOkPendingLastOp ()
Defined at line 50 of file ../../src/devices/block/drivers/core/message-group.h