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

Method read_bytes

kernel/src/context.rs:103–113  ·  view source on GitHub ↗

Reads bytes into the destination `VmWriter` from the user space of the current process. If the reading is completely successful, returns `Ok`. Otherwise, it returns `Err`. If the destination `VmWriter` (`dest`) is empty, this function still checks if the current task and user space are available. If they are, it returns `Ok`.

(&self, src: Vaddr, dest: &mut VmWriter<'_, Infallible>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

newMethod · 0.45
request_device_idMethod · 0.45
readMethod · 0.45
enqueueMethod · 0.45
write_vals_segmentFunction · 0.45
write_slice_segmentFunction · 0.45
read_writeFunction · 0.45
zero_length_operationsFunction · 0.45
slice_partial_operationsFunction · 0.45

Calls 3

check_vaddrFunction · 0.85
read_fallibleMethod · 0.80
readerMethod · 0.45

Tested by 7

write_vals_segmentFunction · 0.36
write_slice_segmentFunction · 0.36
read_writeFunction · 0.36
zero_length_operationsFunction · 0.36
slice_partial_operationsFunction · 0.36