MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / set_range

Method set_range

virtio-devices/src/mem.rs:347–356  ·  view source on GitHub ↗
(&mut self, first_block_index: usize, nb_blocks: usize, plug: bool)

Source from the content-addressed store, hash-verified

345 }
346
347 fn set_range(&mut self, first_block_index: usize, nb_blocks: usize, plug: bool) {
348 for state in self
349 .bitmap
350 .iter_mut()
351 .skip(first_block_index)
352 .take(nb_blocks)
353 {
354 *state = plug;
355 }
356 }
357
358 fn inner(&self) -> &Vec<bool> {
359 &self.bitmap

Callers 2

state_change_requestMethod · 0.80
unplug_allMethod · 0.80

Calls 2

takeMethod · 0.80
iter_mutMethod · 0.80

Tested by

no test coverage detected