Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ read
Function
read
user/src/file.rs:25–27 ·
view source on GitHub ↗
(fd: usize, buf: &mut [u8])
Source
from the content-addressed store, hash-verified
23
sys_pipe(pipe_fd)
24
}
25
pub fn read(fd: usize, buf: &mut [u8]) -> isize {
26
sys_read(fd, buf)
27
}
28
pub fn write(fd: usize, buf: &[u8]) -> isize {
29
sys_write(fd, buf)
30
}
Callers
12
getchar
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
get_time
Function · 0.85
get_time_ms
Function · 0.85
trap_handler
Function · 0.85
trap_from_kernel
Function · 0.85
app_init_context
Method · 0.85
enter
Method · 0.85
Calls
1
sys_read
Function · 0.70
Tested by
3
main
Function · 0.68
main
Function · 0.68
main
Function · 0.68