class LockedParentWalker
Defined at line 207 of file ../../zircon/kernel/vm/vm_cow_pages.cc
Helper for walking up a VmCowPages hierarchy where the start node is locked, and the immediate
parent may or may not be locked.
Public Methods
void LockedParentWalker (const VmCowPages::LockedPtr & maybe_locked_parent)
Construct the parent walker with a reference to a LockedPtr of any locked parent. The
referenced LockedPtr can be empty if the immediate parent is either not locked, or does not
exist. It is the callers responsibility to ensure the LockedPtr lives long enough.
Defined at line 212 of file ../../zircon/kernel/vm/vm_cow_pages.cc
VmCowPages & current (VmCowPages * self)
Returns a locked reference to the current node in the walk. The TA_ASSERT is deemed correct as
all code paths return a `LockedPtr::locked*` method, that themselves have a TA_ASSERT.
Defined at line 217 of file ../../zircon/kernel/vm/vm_cow_pages.cc
const VmCowPages & current (const VmCowPages * self)
Defined at line 223 of file ../../zircon/kernel/vm/vm_cow_pages.cc
void reset ()
Resets the walker to its initial state, allowing for a new walk.
Defined at line 232 of file ../../zircon/kernel/vm/vm_cow_pages.cc
void WalkUp (const VmCowPages * self)
Walk up the hierarchy, changing the current node to the current nodes parent. It is an error to
call this if current has no parent.
Defined at line 239 of file ../../zircon/kernel/vm/vm_cow_pages.cc