Skip to main content

in_window

Function in_window 

Source
fn in_window(addr: u64, len: usize) -> Option<Result<(*mut u8, usize), i32>>
Expand description

Where len bytes at guest address addr lie in the supervisor’s mapping of the mailbox, when it is in use.

§Arguments

  • addr - Guest address.
  • len - Bytes from there.

§Returns

None outside the guest-stub mode; otherwise the local address and how many of the bytes lie inside the mailbox.

§Errors

EFAULT when addr is not in the mailbox.