Kernel: More header dependency reduction work

This commit is contained in:
Andreas Kling 2020-02-16 02:15:33 +01:00
parent 16818322c5
commit 635ae70b8f
Notes: sideshowbarker 2024-07-19 09:17:18 +09:00
6 changed files with 7 additions and 10 deletions

View file

@ -26,6 +26,7 @@
#include <AK/HashTable.h>
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <Kernel/FileSystem/Custody.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Lock.h>

View file

@ -26,17 +26,14 @@
#pragma once
#include <AK/Badge.h>
#include <AK/InlineLinkedList.h>
#include <AK/RefCounted.h>
#include <AK/RefPtr.h>
#include <AK/String.h>
#include <Kernel/Forward.h>
namespace Kernel {
class Inode;
class VFS;
// FIXME: Custody needs some locking.
class Custody : public RefCounted<Custody>

View file

@ -61,6 +61,7 @@ class TCPSocket;
class TTY;
class Thread;
class UDPSocket;
class VFS;
class VMObject;
class WaitQueue;

View file

@ -34,8 +34,10 @@ namespace Kernel {
class FileDescription;
class LocalSocket final : public Socket, public InlineLinkedListNode<LocalSocket> {
class LocalSocket final : public Socket
, public InlineLinkedListNode<LocalSocket> {
friend class InlineLinkedListNode<LocalSocket>;
public:
static KResultOr<NonnullRefPtr<Socket>> create(int type);
virtual ~LocalSocket() override;

View file

@ -30,9 +30,6 @@
#include <AK/InlineLinkedList.h>
#include <AK/NonnullOwnPtrVector.h>
#include <AK/String.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <AK/WeakPtr.h>
#include <AK/Weakable.h>
#include <Kernel/FileSystem/InodeMetadata.h>
#include <Kernel/Forward.h>

View file

@ -72,8 +72,7 @@ public:
Vector<Range, 2> carve(const Range&);
private:
VirtualAddress m_base;
size_t m_size { 0 };
VirtualAddress m_base; size_t m_size { 0 };
};
class RangeAllocator {