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

fn buf_map(
    from_buf: &[u8],
    to_buf: &mut [u8],
    curoff: &mut usize,
    from_mem: &mut ProcessMemory,
    to_mem: &mut ProcessMemory,
    flags: MappingAccessRights,
    buffers: &mut Vec<Buffer>
) -> Result<(), UserspaceError>

Send an IPC Buffer from the sender into the receiver.

There are two "families" of IPC buffers:

In practice, the performance lost by memcpying the data can be made up by not requiring to flush the page table cache, so care must be taken when chosing between Buffer or Pointer family of IPC.

Should be called from the receiver process.