mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
01e1af732b
The VFSRootContext class, as its name suggests, holds a context for a root directory with its mount table and the root custody/inode in the same class. The idea is derived from the Linux mount namespace mechanism. It mimicks the concept of the ProcessList object, but it is adjusted for a root directory tree context. In contrast to the ProcessList concept, processes that share the default VFSRootContext can't see other VFSRootContext related properties such as as the mount table and root custody/inode. To accommodate to this change progressively, we internally create 2 main VFS root contexts for now - one for kernel processes (as they don't need to care about VFS root contexts for the most part), and another for all userspace programs. This separation allows us to continue pretending for userspace that everything is "normal" as it is used to be, until we introduce proper interfaces in the mount-related syscalls as well as in the SysFS. We make VFSRootContext objects being listed, as another preparation before we could expose interfaces to userspace. As a result, the PowerStateSwitchTask now iterates on all contexts and tear them down one by one. |
||
---|---|---|
.. | ||
Subsystems | ||
Component.cpp | ||
Component.h | ||
DirectoryInode.cpp | ||
DirectoryInode.h | ||
FileSystem.cpp | ||
FileSystem.h | ||
Inode.cpp | ||
Inode.h | ||
LinkInode.cpp | ||
LinkInode.h | ||
Registry.cpp | ||
Registry.h | ||
RootDirectory.cpp | ||
RootDirectory.h |