mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 12:07:35 +00:00
Kernel: Rename region_from_foo() => find_region_from_foo()
Let's emphasize that these functions actually go out and find regions.
This commit is contained in:
parent
2e2de125e5
commit
be7add690d
8 changed files with 21 additions and 21 deletions
|
@ -224,7 +224,7 @@ bool Process::deallocate_region(Region& region)
|
|||
return false;
|
||||
}
|
||||
|
||||
Region* Process::region_from_range(const Range& range)
|
||||
Region* Process::find_region_from_range(const Range& range)
|
||||
{
|
||||
ScopedSpinLock lock(m_lock);
|
||||
if (m_region_lookup_cache.range == range && m_region_lookup_cache.region)
|
||||
|
@ -241,7 +241,7 @@ Region* Process::region_from_range(const Range& range)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
Region* Process::region_containing(const Range& range)
|
||||
Region* Process::find_region_containing(const Range& range)
|
||||
{
|
||||
ScopedSpinLock lock(m_lock);
|
||||
for (auto& region : m_regions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue