class BatchPQUpdateBacklink

Defined at line 359 of file ../../zircon/kernel/vm/vm_cow_pages.cc

Helper class for collecting pages to perform batched calls of |ChangeObjectOffset| on the page

queue in order to avoid incurring its spinlock overhead for every single page. Note that pages

are not modified until *after* Flush has been called and Flush must be called prior to object

destruction.

This class has a large internal array and should be marked uninitialized.

Public Methods

void BatchPQUpdateBacklink (VmCowPages * object)

Defined at line 361 of file ../../zircon/kernel/vm/vm_cow_pages.cc

void ~BatchPQUpdateBacklink ()

Defined at line 362 of file ../../zircon/kernel/vm/vm_cow_pages.cc

void BatchPQUpdateBacklink (const BatchPQUpdateBacklink & )

Defined at line 363 of file ../../zircon/kernel/vm/vm_cow_pages.cc

BatchPQUpdateBacklink & operator= (const BatchPQUpdateBacklink & )

Defined at line 363 of file ../../zircon/kernel/vm/vm_cow_pages.cc

void Push (vm_page_t * page, uint64_t offset)

Add a page to the batch set. Automatically calls |Flush| if the limit is reached.

Defined at line 366 of file ../../zircon/kernel/vm/vm_cow_pages.cc

void Flush ()

Performs |ChangeObjectOffset| on any pending pages.

Defined at line 380 of file ../../zircon/kernel/vm/vm_cow_pages.cc