1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:48:11 +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:
Andreas Kling 2020-07-30 23:52:28 +02:00
parent 2e2de125e5
commit be7add690d
8 changed files with 21 additions and 21 deletions

View file

@ -84,7 +84,7 @@ KResult Process::poke_user_data(u32* address, u32 data)
}
ProcessPagingScope scope(*this);
Range range = { VirtualAddress(address), sizeof(u32) };
auto* region = region_containing(range);
auto* region = find_region_containing(range);
ASSERT(region != nullptr);
if (region->is_shared()) {
// If the region is shared, we change its vmobject to a PrivateInodeVMObject