ladybird/Kernel/FileSystem
Liav A f5de4f24b2 Kernel/Devices: Defer creation of SysFS component after the constructor
Instead of doing so in the constructor, let's do immediately after the
constructor, so we can safely pass a reference of a Device, so the
SysFSDeviceComponent constructor can use that object to identify whether
it's a block device or a character device.
This allows to us to not hold a device in SysFSDeviceComponent with a
RefPtr.
Also, we also call the before_removing method in both SlavePTY::unref
and File::unref, so because Device has that method being overrided, it
can ensure the device is removed always cleanly.
2021-09-11 11:41:14 +02:00
..
AnonymousFile.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
AnonymousFile.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
BlockBasedFileSystem.cpp AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
BlockBasedFileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
Custody.cpp
Custody.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
DevPtsFS.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
DevPtsFS.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
DevTmpFS.cpp Kernel+SystemServer: Simplify the DevTmpFS design 2021-09-08 00:42:20 +02:00
DevTmpFS.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
ext2_fs.h
ext2_types.h
Ext2FileSystem.cpp Kernel: Make KBuffer::try_create_with_size() return KResultOr 2021-09-07 15:15:08 +02:00
Ext2FileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
FIFO.cpp Kernel: Use KResultOr and TRY() for FIFO 2021-09-07 13:58:16 +02:00
FIFO.h Kernel: Use KResultOr and TRY() for FIFO 2021-09-07 13:58:16 +02:00
File.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
File.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
FileBackedFileSystem.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
FileBackedFileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
FileSystem.cpp
FileSystem.h
Inode.cpp Kernel: Add KBuffer::bytes() and use it 2021-09-08 20:16:00 +02:00
Inode.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
InodeFile.cpp Kernel: Use OOM-safe absolute path serialization in InodeFile::mmap() 2021-09-07 22:16:25 +02:00
InodeFile.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
InodeIdentifier.h
InodeMetadata.h Kernel+SystemServer: Defer creation of device nodes to userspace 2021-09-08 00:42:20 +02:00
InodeWatcher.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
InodeWatcher.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
ISO9660FileSystem.cpp Kernel: Make KBuffer::try_create_with_size() return KResultOr 2021-09-07 15:15:08 +02:00
ISO9660FileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
Mount.cpp
Mount.h
OpenFileDescription.cpp Kernel+SystemServer: Defer creation of device nodes to userspace 2021-09-08 00:42:20 +02:00
OpenFileDescription.h Kernel+SystemServer: Defer creation of device nodes to userspace 2021-09-08 00:42:20 +02:00
Plan9FileSystem.cpp Kernel: Add KBuffer::bytes() and use it 2021-09-08 20:16:00 +02:00
Plan9FileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
ProcFS.cpp Kernel: Make it possible for KBufferBuilder creation to fail 2021-09-07 15:54:23 +02:00
ProcFS.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
SysFS.cpp Kernel: Expose device presence in /sys/dev/char and /sys/dev/block 2021-09-08 00:42:20 +02:00
SysFS.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
SysFSComponent.cpp
SysFSComponent.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
TmpFS.cpp Kernel/TmpFS: Stop leaking directory entry metadata 2021-09-07 22:16:25 +02:00
TmpFS.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
UnveilNode.h
VirtualFileSystem.cpp Kernel/VFS: Restrict special unveil rule for Loader.so 2021-09-09 11:32:16 +02:00
VirtualFileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00