mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 19:35:06 +00:00

Nobody was using this API to request anythign about `PAGE_SIZE` alignment, so let's get rid of it for now. We can reimplement it if we end up needing it. Also note that it wasn't actually used anywhere.
34 lines
968 B
C++
34 lines
968 B
C++
/*
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Kernel/PhysicalAddress.h>
|
|
#include <Kernel/VM/MemoryManager.h>
|
|
#include <Kernel/VM/VMObject.h>
|
|
|
|
namespace Kernel {
|
|
class ContiguousVMObject final : public VMObject {
|
|
public:
|
|
virtual ~ContiguousVMObject() override;
|
|
|
|
static RefPtr<ContiguousVMObject> try_create_with_size(size_t);
|
|
|
|
private:
|
|
explicit ContiguousVMObject(size_t, NonnullRefPtrVector<PhysicalPage>&);
|
|
explicit ContiguousVMObject(const ContiguousVMObject&);
|
|
|
|
virtual StringView class_name() const override { return "ContiguousVMObject"sv; }
|
|
virtual RefPtr<VMObject> try_clone() override;
|
|
|
|
ContiguousVMObject& operator=(const ContiguousVMObject&) = delete;
|
|
ContiguousVMObject& operator=(ContiguousVMObject&&) = delete;
|
|
ContiguousVMObject(ContiguousVMObject&&) = delete;
|
|
|
|
virtual bool is_contiguous() const override { return true; }
|
|
};
|
|
|
|
}
|