MCPcopy 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}
25pub fn read(fd: usize, buf: &mut [u8]) -> isize {
26 sys_read(fd, buf)
27}
28pub fn write(fd: usize, buf: &[u8]) -> isize {
29 sys_write(fd, buf)
30}

Callers 12

getcharFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
get_timeFunction · 0.85
get_time_msFunction · 0.85
trap_handlerFunction · 0.85
trap_from_kernelFunction · 0.85
app_init_contextMethod · 0.85
enterMethod · 0.85

Calls 1

sys_readFunction · 0.70

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68