pub unsafe extern "C" fn channel_respond(
object_handle: u32,
buffer: *mut u8,
buffer_len: usize,
) -> isizeExpand description
Respond to and complete a pending transaction
Causes the kernel to copy buffer into the initiator’s recv_buffer
and set Signals::READABLE on the initiator channel object.
The maximum size of buffer that may be passed is isize::MAX.
§Returns
0: On success.Error::OutOfRange: The initiator’srecv_bufferis not large enough to fit the providedbuffer.Error::Unavailable: No transaction was pending on the channel. This can happen in the middle of handling a transaction if the initiator cancels the transaction.Error::PermissionDenied:bufferdoes not reference a valid memory region in this processes’ address space.