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

Method write_bytes

kernel/src/context.rs:134–144  ·  view source on GitHub ↗

Writes bytes from the source `VmReader` to the user space of the current process. If the writing is completely successful, returns `Ok`. Otherwise, it returns `Err`. If the source `VmReader` (`src`) is empty, this function still checks if the current task and user space are available. If they are, it returns `Ok`.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

create_vm_spaceFunction · 0.45
newMethod · 0.45
write_pixel_atMethod · 0.45
write_bytes_atMethod · 0.45
writeMethod · 0.45
enqueueMethod · 0.45
read_writeFunction · 0.45
zero_length_operationsFunction · 0.45
slice_partial_operationsFunction · 0.45

Calls 4

check_vaddrFunction · 0.85
remainMethod · 0.80
write_fallibleMethod · 0.80
writerMethod · 0.45

Tested by 6

create_vm_spaceFunction · 0.36
read_writeFunction · 0.36
zero_length_operationsFunction · 0.36
slice_partial_operationsFunction · 0.36