summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-06 13:59:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-06 14:05:58 +0200
commit208147c77cf204e14126754bba4f7483e50213eb (patch)
treeabf7035eeb99b946a215061b1fd48c12065b6538 /Kernel/Devices
parentb7476d7a1b71ecee6488b6daa4cf41753b699646 (diff)
downloadserenity-208147c77cf204e14126754bba4f7483e50213eb.zip
Kernel: Rename Process::space() => Process::address_space()
We commonly talk about "a process's address space" so let's nudge the code towards matching how we talk about it. :^)
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/KCOVDevice.cpp2
-rw-r--r--Kernel/Devices/MemoryDevice.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/KCOVDevice.cpp b/Kernel/Devices/KCOVDevice.cpp
index 063f810b61..c1dd8b2fb0 100644
--- a/Kernel/Devices/KCOVDevice.cpp
+++ b/Kernel/Devices/KCOVDevice.cpp
@@ -140,7 +140,7 @@ KResultOr<Memory::Region*> KCOVDevice::mmap(Process& process, FileDescription&,
return ENOBUFS; // Mmaped, before KCOV_SETBUFSIZE
}
- return process.space().allocate_region_with_vmobject(
+ return process.address_space().allocate_region_with_vmobject(
range, *kcov_instance->vmobject, offset, {}, prot, shared);
}
diff --git a/Kernel/Devices/MemoryDevice.cpp b/Kernel/Devices/MemoryDevice.cpp
index 0dce9e87d6..5650fd158e 100644
--- a/Kernel/Devices/MemoryDevice.cpp
+++ b/Kernel/Devices/MemoryDevice.cpp
@@ -51,7 +51,7 @@ KResultOr<Memory::Region*> MemoryDevice::mmap(Process& process, FileDescription&
if (!vmobject)
return ENOMEM;
dbgln("MemoryDevice: Mapped physical memory at {} for range of {} bytes", viewed_address, range.size());
- return process.space().allocate_region_with_vmobject(
+ return process.address_space().allocate_region_with_vmobject(
range,
vmobject.release_nonnull(),
0,