pub unsafe extern "C" fn channel_async_transact(
object_handle: u32,
send_data: *const u8,
send_len: usize,
recv_data: *mut u8,
recv_len: usize,
) -> isizeExpand description
Perform an asynchronous channel transaction
Initiates a transaction from the initiator side of a channel.
send_datamust remain valid and readable andrecv_datamust remain valid and writeable for the duration of the transaction (completed or canceled.) send_dataandrecv_data` may overlap or be the same
buffer.
This call will cause Signals::READABLE to be cleared on the initiator
channel object. It will be signaled by the handler side when it
responds.
§Returns
0: Transaction was successfully initiated.Error::InvalidArgument:object_handleis not a valid initiator channel object.Error::ResourceExhausted: The channel already has a pending transaction.Error::PermissionDenied:send_dataorrecv_datado not reference valid memory regions in this processes’ address space.