mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Kernel: Move TTY-related code to a new subdirectory under Devices
The TTY subsystem is represented with unix devices, so it should be under the Devices directory like the Audio, Storage, GPU and HID subsystems.
This commit is contained in:
parent
c99c065a40
commit
b55199c227
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/b55199c227 Pull-request: https://github.com/SerenityOS/serenity/pull/19882 Reviewed-by: https://github.com/AtkinsSJ
31 changed files with 42 additions and 42 deletions
|
@ -31,6 +31,9 @@
|
|||
#include <Kernel/Devices/PCISerialDevice.h>
|
||||
#include <Kernel/Devices/SerialDevice.h>
|
||||
#include <Kernel/Devices/Storage/StorageManagement.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/Devices/TTY/VirtualConsole.h>
|
||||
#include <Kernel/FileSystem/SysFS/Registry.h>
|
||||
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/Directory.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
|
@ -45,9 +48,6 @@
|
|||
#include <Kernel/Prekernel/Prekernel.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/Security/Random.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
#include <Kernel/Tasks/FinalizerTask.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
#include <Kernel/Tasks/Scheduler.h>
|
||||
|
|
|
@ -340,12 +340,12 @@ set(KERNEL_SOURCES
|
|||
Syscalls/waitid.cpp
|
||||
Syscalls/inode_watcher.cpp
|
||||
Syscalls/write.cpp
|
||||
TTY/ConsoleManagement.cpp
|
||||
TTY/MasterPTY.cpp
|
||||
TTY/PTYMultiplexer.cpp
|
||||
TTY/SlavePTY.cpp
|
||||
TTY/TTY.cpp
|
||||
TTY/VirtualConsole.cpp
|
||||
Devices/TTY/ConsoleManagement.cpp
|
||||
Devices/TTY/MasterPTY.cpp
|
||||
Devices/TTY/PTYMultiplexer.cpp
|
||||
Devices/TTY/SlavePTY.cpp
|
||||
Devices/TTY/TTY.cpp
|
||||
Devices/TTY/VirtualConsole.cpp
|
||||
Tasks/Coredump.cpp
|
||||
Tasks/CrashHandler.cpp
|
||||
Tasks/FinalizerTask.cpp
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/GPU/Console/ContiguousFramebufferConsole.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
|
||||
namespace Kernel::Graphics {
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/GPU/Console/GenericFramebufferConsole.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
|
||||
namespace Kernel::Graphics {
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/GPU/VirtIO/Console.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Tasks/WorkQueue.h>
|
||||
|
||||
namespace Kernel::Graphics::VirtIOGPU {
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/Generic/SelfTTYDevice.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
#include <Kernel/API/KeyCode.h>
|
||||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/HID/KeyboardDevice.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/VirtualConsole.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
#include <Kernel/Tasks/Scheduler.h>
|
||||
#include <Kernel/Tasks/WorkQueue.h>
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
#include <Kernel/Devices/HID/Management.h>
|
||||
#include <Kernel/Devices/HID/PS2/KeyboardDevice.h>
|
||||
#include <Kernel/Devices/HID/ScanCodeEvent.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Tasks/Scheduler.h>
|
||||
#include <Kernel/Tasks/WorkQueue.h>
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/GPU/Management.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Library/Panic.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -7,8 +7,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Devices/TTY/VirtualConsole.h>
|
||||
#include <Kernel/Library/NonnullLockRefPtr.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -8,10 +8,10 @@
|
|||
#include <Kernel/API/POSIX/errno.h>
|
||||
#include <Kernel/API/POSIX/signal_numbers.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/TTY/MasterPTY.h>
|
||||
#include <Kernel/Devices/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/Devices/TTY/SlavePTY.h>
|
||||
#include <Kernel/Interrupts/InterruptDisabler.h>
|
||||
#include <Kernel/TTY/MasterPTY.h>
|
||||
#include <Kernel/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/TTY/SlavePTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
||||
namespace Kernel {
|
|
@ -7,10 +7,10 @@
|
|||
#include <AK/Singleton.h>
|
||||
#include <Kernel/API/POSIX/errno.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/TTY/MasterPTY.h>
|
||||
#include <Kernel/Devices/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/FileSystem/OpenFileDescription.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/MasterPTY.h>
|
||||
#include <Kernel/TTY/PTYMultiplexer.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#include <AK/Singleton.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/TTY/MasterPTY.h>
|
||||
#include <Kernel/TTY/SlavePTY.h>
|
||||
#include <Kernel/Devices/TTY/MasterPTY.h>
|
||||
#include <Kernel/Devices/TTY/SlavePTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
||||
namespace Kernel {
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/InodeIdentifier.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
#include <Kernel/API/ttydefaults.h>
|
||||
#include <Kernel/API/ttydefaultschars.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/Interrupts/InterruptDisabler.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
|
||||
namespace Kernel {
|
|
@ -15,11 +15,11 @@
|
|||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/GPU/Management.h>
|
||||
#include <Kernel/Devices/HID/Management.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Devices/TTY/VirtualConsole.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
#include <Kernel/Library/StdLib.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
#include <LibVT/Color.h>
|
||||
|
||||
namespace Kernel {
|
|
@ -13,7 +13,7 @@
|
|||
#include <Kernel/Devices/GPU/Console/Console.h>
|
||||
#include <Kernel/Devices/Generic/ConsoleDevice.h>
|
||||
#include <Kernel/Devices/HID/Management.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <LibVT/Attribute.h>
|
||||
#include <LibVT/Color.h>
|
||||
#include <LibVT/Position.h>
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/TTY/SlavePTY.h>
|
||||
#include <Kernel/FileSystem/DevPtsFS/FileSystem.h>
|
||||
#include <Kernel/FileSystem/DevPtsFS/Inode.h>
|
||||
#include <Kernel/TTY/SlavePTY.h>
|
||||
#include <Kernel/Time/TimeManagement.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Devices/TTY/SlavePTY.h>
|
||||
#include <Kernel/FileSystem/DevPtsFS/FileSystem.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/TTY/SlavePTY.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include <AK/MemoryStream.h>
|
||||
#include <Kernel/API/POSIX/errno.h>
|
||||
#include <Kernel/Devices/BlockDevice.h>
|
||||
#include <Kernel/Devices/TTY/MasterPTY.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/FIFO.h>
|
||||
#include <Kernel/FileSystem/InodeFile.h>
|
||||
|
@ -17,8 +19,6 @@
|
|||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/Memory/MemoryManager.h>
|
||||
#include <Kernel/Net/Socket.h>
|
||||
#include <Kernel/TTY/MasterPTY.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
#include <AK/JsonArraySerializer.h>
|
||||
#include <AK/JsonObjectSerializer.h>
|
||||
#include <AK/JsonValue.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/ProcFS/Inode.h>
|
||||
#include <Kernel/Interrupts/InterruptDisabler.h>
|
||||
#include <Kernel/Library/KBufferBuilder.h>
|
||||
#include <Kernel/Memory/AnonymousVMObject.h>
|
||||
#include <Kernel/Memory/MemoryManager.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
#include <AK/JsonObjectSerializer.h>
|
||||
#include <AK/Try.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/SysFS/Subsystems/Kernel/Processes.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
#include <Kernel/Tasks/Scheduler.h>
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/Memory/Region.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/PerformanceManager.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
#include <Kernel/Tasks/Scheduler.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
#endif
|
||||
#include <AK/StringView.h>
|
||||
#include <Kernel/Arch/PowerState.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/FileSystem/FileSystem.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/Firmware/ACPI/Parser.h>
|
||||
#include <Kernel/Library/Panic.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Tasks/FinalizerTask.h>
|
||||
#include <Kernel/Tasks/PowerStateSwitchTask.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <Kernel/API/POSIX/sys/limits.h>
|
||||
#include <Kernel/Arch/PageDirectory.h>
|
||||
#include <Kernel/Devices/Generic/NullDevice.h>
|
||||
#include <Kernel/Devices/TTY/TTY.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/OpenFileDescription.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
|
@ -32,7 +33,6 @@
|
|||
#include <Kernel/Memory/AnonymousVMObject.h>
|
||||
#include <Kernel/Memory/SharedInodeVMObject.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/Tasks/PerformanceEventBuffer.h>
|
||||
#include <Kernel/Tasks/PerformanceManager.h>
|
||||
#include <Kernel/Tasks/Process.h>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
#include <Kernel/Devices/GPU/Management.h>
|
||||
#include <Kernel/Devices/Generic/ConsoleDevice.h>
|
||||
#include <Kernel/Devices/PCISerialDevice.h>
|
||||
#include <Kernel/Devices/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/Locking/Spinlock.h>
|
||||
#include <Kernel/TTY/ConsoleManagement.h>
|
||||
#include <Kernel/kstdio.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <LibVT/Color.h>
|
||||
#include <LibVT/Terminal.h>
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/TTY/VirtualConsole.h>
|
||||
# include <Kernel/Devices/TTY/VirtualConsole.h>
|
||||
#endif
|
||||
|
||||
namespace VT {
|
||||
|
|
Loading…
Reference in a new issue