summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-03-03 00:54:36 -0800
committerAndreas Kling <kling@serenityos.org>2021-03-03 11:05:16 +0100
commit0f424afd5aae5d14c1783fac964ac5e9a5aeecc2 (patch)
tree67cfff31ff5691fc66b0f03591c6abf5bb335a0e /Kernel/Storage
parent84a399de5d977009b07652bf2dfefaff163693f8 (diff)
downloadserenity-0f424afd5aae5d14c1783fac964ac5e9a5aeecc2.zip
Kernel: Mark more of the kernel initialization as UNMAP_AFTER_INIT
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/StorageManagement.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Kernel/Storage/StorageManagement.cpp b/Kernel/Storage/StorageManagement.cpp
index 8090270d2e..fdbee54975 100644
--- a/Kernel/Storage/StorageManagement.cpp
+++ b/Kernel/Storage/StorageManagement.cpp
@@ -59,7 +59,7 @@ bool StorageManagement::boot_argument_contains_partition_uuid()
return m_boot_argument.starts_with("PARTUUID=");
}
-NonnullRefPtrVector<StorageController> StorageManagement::enumerate_controllers(bool force_pio) const
+UNMAP_AFTER_INIT NonnullRefPtrVector<StorageController> StorageManagement::enumerate_controllers(bool force_pio) const
{
NonnullRefPtrVector<StorageController> controllers;
if (kernel_command_line().is_ide_enabled()) {
@@ -73,7 +73,7 @@ NonnullRefPtrVector<StorageController> StorageManagement::enumerate_controllers(
return controllers;
}
-NonnullRefPtrVector<StorageDevice> StorageManagement::enumerate_storage_devices() const
+UNMAP_AFTER_INIT NonnullRefPtrVector<StorageDevice> StorageManagement::enumerate_storage_devices() const
{
VERIFY(!m_controllers.is_empty());
NonnullRefPtrVector<StorageDevice> devices;
@@ -88,7 +88,7 @@ NonnullRefPtrVector<StorageDevice> StorageManagement::enumerate_storage_devices(
return devices;
}
-OwnPtr<PartitionTable> StorageManagement::try_to_initialize_partition_table(const StorageDevice& device) const
+UNMAP_AFTER_INIT OwnPtr<PartitionTable> StorageManagement::try_to_initialize_partition_table(const StorageDevice& device) const
{
auto mbr_table_or_result = MBRPartitionTable::try_to_initialize(device);
if (!mbr_table_or_result.is_error())
@@ -108,7 +108,7 @@ OwnPtr<PartitionTable> StorageManagement::try_to_initialize_partition_table(cons
return {};
}
-NonnullRefPtrVector<DiskPartition> StorageManagement::enumerate_disk_partitions() const
+UNMAP_AFTER_INIT NonnullRefPtrVector<DiskPartition> StorageManagement::enumerate_disk_partitions() const
{
VERIFY(!m_storage_devices.is_empty());
NonnullRefPtrVector<DiskPartition> partitions;
@@ -131,7 +131,7 @@ NonnullRefPtrVector<DiskPartition> StorageManagement::enumerate_disk_partitions(
return partitions;
}
-void StorageManagement::determine_boot_device()
+UNMAP_AFTER_INIT void StorageManagement::determine_boot_device()
{
VERIFY(!m_controllers.is_empty());
if (m_boot_argument.starts_with("/dev/")) {
@@ -151,7 +151,7 @@ void StorageManagement::determine_boot_device()
}
}
-void StorageManagement::determine_boot_device_with_partition_uuid()
+UNMAP_AFTER_INIT void StorageManagement::determine_boot_device_with_partition_uuid()
{
VERIFY(!m_disk_partitions.is_empty());
VERIFY(m_boot_argument.starts_with("PARTUUID="));