mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
23a7ccf607
This is a preparation before we can create a usable mechanism to use filesystem-specific mount flags. To keep some compatibility with userland code, LibC and LibCore mount functions are kept being usable, but now instead of doing an "atomic" syscall, they do multiple syscalls to perform the complete procedure of mounting a filesystem. The FileBackedFileSystem IntrusiveList in the VFS code is now changed to be protected by a Mutex, because when we mount a new filesystem, we need to check if a filesystem is already created for a given source_fd so we do a scan for that OpenFileDescription in that list. If we fail to find an already-created filesystem we create a new one and register it in the list if we successfully mounted it. We use a Mutex because we might need to initiate disk access during the filesystem creation, which will take other mutexes in other parts of the kernel, therefore making it not possible to take a spinlock while doing this. |
||
---|---|---|
.. | ||
Audio | ||
Generic | ||
GPU | ||
HID | ||
Storage | ||
AsyncDeviceRequest.cpp | ||
AsyncDeviceRequest.h | ||
BlockDevice.cpp | ||
BlockDevice.h | ||
CharacterDevice.cpp | ||
CharacterDevice.h | ||
Device.cpp | ||
Device.h | ||
DeviceManagement.cpp | ||
DeviceManagement.h | ||
KCOVDevice.cpp | ||
KCOVDevice.h | ||
KCOVInstance.cpp | ||
KCOVInstance.h | ||
PCISerialDevice.cpp | ||
PCISerialDevice.h | ||
SerialDevice.cpp | ||
SerialDevice.h |