MCPcopy Create free account
hub / github.com/asterinas/vostd / read_cstring

Method read_cstring

kernel/src/context.rs:159–172  ·  view source on GitHub ↗

Reads a C string from the user space of the current process. The length of the string should not exceed `max_len`, including the final `\0` byte.

(&self, vaddr: Vaddr, max_len: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

read_multiple_cstringFunction · 0.80
sys_fchmodatFunction · 0.80
sys_symlinkatFunction · 0.80
sys_statfsFunction · 0.80
sys_fstatatFunction · 0.80
sys_removexattrFunction · 0.80
sys_lremovexattrFunction · 0.80
sys_getxattrFunction · 0.80
sys_lgetxattrFunction · 0.80
sys_mkdiratFunction · 0.80
sys_prctlFunction · 0.80

Calls 5

check_vaddrFunction · 0.85
remainMethod · 0.80
sum_lensMethod · 0.80
readerMethod · 0.45

Tested by

no test coverage detected