mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
12b6e69150
The new ProcFS design consists of two main parts: 1. The representative ProcFS class, which is derived from the FS class. The ProcFS and its inodes are much more lean - merely 3 classes to represent the common type of inodes - regular files, symbolic links and directories. They're backed by a ProcFSExposedComponent object, which is responsible for the functional operation behind the scenes. 2. The backend of the ProcFS - the ProcFSComponentsRegistrar class and all derived classes from the ProcFSExposedComponent class. These together form the entire backend and handle all the functions you can expect from the ProcFS. The ProcFSExposedComponent derived classes split to 3 types in the manner of lifetime in the kernel: 1. Persistent objects - this category includes all basic objects, like the root folder, /proc/bus folder, main blob files in the root folders, etc. These objects are persistent and cannot die ever. 2. Semi-persistent objects - this category includes all PID folders, and subdirectories to the PID folders. It also includes exposed objects like the unveil JSON'ed blob. These object are persistent as long as the the responsible process they represent is still alive. 3. Dynamic objects - this category includes files in the subdirectories of a PID folder, like /proc/PID/fd/* or /proc/PID/stacks/*. Essentially, these objects are always created dynamically and when no longer in need after being used, they're deallocated. Nevertheless, the new allocated backend objects and inodes try to use the same InodeIndex if possible - this might change only when a thread dies and a new thread is born with a new thread stack, or when a file descriptor is closed and a new one within the same file descriptor number is opened. This is needed to actually be able to do something useful with these objects. The new design assures that many ProcFS instances can be used at once, with one backend for usage for all instances. |
||
---|---|---|
.. | ||
access.cpp | ||
alarm.cpp | ||
anon_create.cpp | ||
beep.cpp | ||
chdir.cpp | ||
chmod.cpp | ||
chown.cpp | ||
chroot.cpp | ||
clock.cpp | ||
debug.cpp | ||
disown.cpp | ||
dup2.cpp | ||
emuctl.cpp | ||
execve.cpp | ||
exit.cpp | ||
fcntl.cpp | ||
fork.cpp | ||
ftruncate.cpp | ||
futex.cpp | ||
get_dir_entries.cpp | ||
get_stack_bounds.cpp | ||
getrandom.cpp | ||
getuid.cpp | ||
hostname.cpp | ||
inode_watcher.cpp | ||
ioctl.cpp | ||
keymap.cpp | ||
kill.cpp | ||
link.cpp | ||
lseek.cpp | ||
mkdir.cpp | ||
mknod.cpp | ||
mmap.cpp | ||
module.cpp | ||
mount.cpp | ||
open.cpp | ||
perf_event.cpp | ||
pipe.cpp | ||
pledge.cpp | ||
prctl.cpp | ||
process.cpp | ||
profiling.cpp | ||
ptrace.cpp | ||
purge.cpp | ||
read.cpp | ||
readlink.cpp | ||
realpath.cpp | ||
rename.cpp | ||
rmdir.cpp | ||
sched.cpp | ||
select.cpp | ||
sendfd.cpp | ||
setpgid.cpp | ||
setuid.cpp | ||
shutdown.cpp | ||
sigaction.cpp | ||
socket.cpp | ||
stat.cpp | ||
statvfs.cpp | ||
sync.cpp | ||
sysconf.cpp | ||
thread.cpp | ||
times.cpp | ||
ttyname.cpp | ||
umask.cpp | ||
uname.cpp | ||
unlink.cpp | ||
unveil.cpp | ||
utime.cpp | ||
waitid.cpp | ||
write.cpp |