[][src]Function sunrise_kernel::ipc::session::pass_message

fn pass_message(
    from_buf: &[u8],
    from_proc: Arc<ThreadStruct>,
    to_buf: &mut [u8],
    to_proc: Arc<ThreadStruct>,
    is_reply: bool,
    other_memlock: MutexGuard<ProcessMemory>,
    buffers: &mut Vec<Buffer>,
    c_bufs: CBufBehavior
) -> Result<(), UserspaceError>

Send a message from the sender to the receiver. This is more or less a memcpy, with some special case done to satisfy the various commands of the CMIF structure:

This function should always be called from the context of the receiver/ server.