Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ sys_open
Function
sys_open
user/src/syscall.rs:51–53 ·
view source on GitHub ↗
(path: &str, flags: u32)
Source
from the content-addressed store, hash-verified
49
}
50
51
pub fn sys_open(path: &str, flags: u32) -> isize {
52
syscall(SYSCALL_OPEN, [path.as_ptr() as usize, flags as usize, 0])
53
}
54
55
pub fn sys_close(fd: usize) -> isize {
56
syscall(SYSCALL_CLOSE, [fd, 0, 0])
Callers
1
open
Function · 0.70
Calls
1
syscall
Function · 0.70
Tested by
no test coverage detected