Function unregister_regions

Source
pub fn unregister_regions(
    regions: &[Range<usize>],
    uffds: &[Userfaultfd],
) -> Result<()>
Expand description

Unregister all the regions from all the userfaultfd.

UFFDIO_UNREGISTER unblocks any threads currently waiting on the region and remove page fault events on the region from the userfaultfd event queue.

ยงArguments

  • regions - the list of address range of regions.
  • uffds - the reference to the list of registered Userfaultfd.