MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / open

Function open

user/src/file.rs:16–18  ·  view source on GitHub ↗
(path: &str, flags: OpenFlags)

Source from the content-addressed store, hash-verified

14 sys_dup(fd)
15}
16pub fn open(path: &str, flags: OpenFlags) -> isize {
17 sys_open(path, flags.bits)
18}
19pub fn close(fd: usize) -> isize {
20 sys_close(fd)
21}

Callers 7

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
workerFunction · 0.85
mainFunction · 0.85
easy_fs_packFunction · 0.85
efs_testFunction · 0.85

Calls 1

sys_openFunction · 0.70

Tested by 2

mainFunction · 0.68
efs_testFunction · 0.68