Skip to main content

rewrite_staged

Function rewrite_staged 

Source
fn rewrite_staged(r: &Req<'_>, addr: u64, host: &[u8]) -> Result<Outcome, i32>
Expand description

Replaces a path the guest stub staged with its host path and lets the syscall continue on it.

§Arguments

  • r - The notification.
  • addr - Address of the staged path, a layout::PATH_AREA of the mailbox.
  • host - The host path.

§Errors

ENAMETOOLONG for a host path that does not fit, EFAULT for an address outside the mailbox.