Function memset_fallible

Source
unsafe fn memset_fallible(dst: *mut u8, value: u8, len: usize) -> usize
Expand description

Fills len bytes of memory at dst with the specified value. This function will early stop filling if encountering an unresolvable page fault.

Returns the number of successfully set bytes.

  • dst must either be [valid] for writes of len bytes or be in user space for len bytes