class BatchInserter

Defined at line 1031 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h

Helper object for performing repeated LookupOrAllocate operations that are likely to be close

to each other. While using this object other (modifying) methods on this VmPageList must not be

performed, if they are the |reset| method needs to be used before continuing.

Public Methods

VmPageOrMarker * LookupOrAllocate (uint64_t offset)

Similar to VmPageList::LookupOrAllocate but is implicitly NoIntervals. If repeated offsets

are 'near' each other (in the same node, or in following nodes) then this will be more

efficient than the VmPageList::LookupOrAllocate. However, regardless of the |offset| pattern

this will always return correct results.

Defined at line 113 of file ../../zircon/kernel/vm/vm_page_list.cc

void BatchInserter (VmPageList & list)

Construct a BatchInserter for the specified VmPageList. The list must be kept alive for the

duration of this object.

Defined at line 1035 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h

void ~BatchInserter ()

Defined at line 1036 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h

void BatchInserter (const BatchInserter & )

Defined at line 1038 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h

BatchInserter & operator= (const BatchInserter & )

Defined at line 1039 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h

void reset ()

Reset the batch inserter. This makes it safe to use again if other VmPageList operations had

been performed.

Defined at line 1049 of file ../../zircon/kernel/vm/include/vm/vm_page_list.h