Skip to main content

open

Function open 

Source
pub fn open(path: &str, flags: OpenFlags) -> Result<u32, SyscallError>
Expand description

Open a file and return a file descriptor. Open a file with an already-resolved path (avoids double mount::resolve).

Used by sys_open and open_at which resolve the path once before calling this. The silo permission check must have already been performed.