summaryrefslogtreecommitdiff
path: root/Kernel/Devices/AsyncDeviceRequest.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-06 17:22:36 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-06 18:56:51 +0200
commitf16b9a691f382ffb32880cdc3af4f6b87329da52 (patch)
tree3815e65aa20c4add8d536816e02609a82417b061 /Kernel/Devices/AsyncDeviceRequest.h
parentcd8d52e6aedc551967119e3a9e58f70b2bbb4533 (diff)
downloadserenity-f16b9a691f382ffb32880cdc3af4f6b87329da52.zip
Kernel: Rename ProcessPagingScope => ScopedAddressSpaceSwitcher
Diffstat (limited to 'Kernel/Devices/AsyncDeviceRequest.h')
-rw-r--r--Kernel/Devices/AsyncDeviceRequest.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Devices/AsyncDeviceRequest.h b/Kernel/Devices/AsyncDeviceRequest.h
index a67ddcd501..ef0f86aa52 100644
--- a/Kernel/Devices/AsyncDeviceRequest.h
+++ b/Kernel/Devices/AsyncDeviceRequest.h
@@ -8,7 +8,7 @@
#include <AK/IntrusiveList.h>
#include <AK/NonnullRefPtr.h>
-#include <Kernel/Memory/ProcessPagingScope.h>
+#include <Kernel/Memory/ScopedAddressSpaceSwitcher.h>
#include <Kernel/Process.h>
#include <Kernel/Thread.h>
#include <Kernel/UserOrKernelBuffer.h>
@@ -85,7 +85,7 @@ public:
{
if (in_target_context(buffer))
return buffer.write(forward<Args>(args)...);
- ProcessPagingScope paging_scope(m_process);
+ ScopedAddressSpaceSwitcher switcher(m_process);
return buffer.write(forward<Args>(args)...);
}
@@ -94,7 +94,7 @@ public:
{
if (in_target_context(buffer))
return buffer.write_buffered<BUFFER_BYTES>(forward<Args>(args)...);
- ProcessPagingScope paging_scope(m_process);
+ ScopedAddressSpaceSwitcher switcher(m_process);
return buffer.write_buffered<BUFFER_BYTES>(forward<Args>(args)...);
}
@@ -103,7 +103,7 @@ public:
{
if (in_target_context(buffer))
return buffer.read(forward<Args>(args)...);
- ProcessPagingScope paging_scope(m_process);
+ ScopedAddressSpaceSwitcher switcher(m_process);
return buffer.read(forward<Args>(args)...);
}
@@ -112,7 +112,7 @@ public:
{
if (in_target_context(buffer))
return buffer.read_buffered<BUFFER_BYTES>(forward<Args>(args)...);
- ProcessPagingScope paging_scope(m_process);
+ ScopedAddressSpaceSwitcher switcher(m_process);
return buffer.read_buffered<BUFFER_BYTES>(forward<Args>(args)...);
}