Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. syscall_defs
  6. channel_async_transact

channel_async_transact

Function channel_async_transact 

Source
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,
) -> isize
Expand 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