ladybird/Kernel/Syscalls
Liav A 12b6e69150 Kernel: Introduce the new ProcFS design
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.
2021-06-29 20:53:59 +02:00
..
access.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
alarm.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
anon_create.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
beep.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
chdir.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
chmod.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
chown.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
chroot.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
clock.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
debug.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
disown.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
dup2.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
emuctl.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
execve.cpp Kernel: Fix correct argument order for userspace entry point 2021-06-29 20:03:36 +02:00
exit.cpp Kernel: Don't log profile data before/after the process/thread lifetime 2021-05-30 19:03:03 +02:00
fcntl.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
fork.cpp Kernel: Introduce the new ProcFS design 2021-06-29 20:53:59 +02:00
ftruncate.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
futex.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
get_dir_entries.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
get_stack_bounds.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
getrandom.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
getuid.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
hostname.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
inode_watcher.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
ioctl.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
keymap.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
kill.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
link.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
lseek.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
mkdir.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
mknod.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
mmap.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
module.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
mount.cpp Kernel: Introduce the new SysFS 2021-06-29 20:53:59 +02:00
open.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
perf_event.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
pipe.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
pledge.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
prctl.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
process.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
profiling.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
ptrace.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
purge.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
read.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
readlink.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
realpath.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
rename.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
rmdir.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
sched.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
select.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
sendfd.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
setpgid.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
setuid.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
shutdown.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
sigaction.cpp Kernel: Implement signal handling for x86_64 2021-06-29 20:03:36 +02:00
socket.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
stat.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
statvfs.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
sync.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
sysconf.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
thread.cpp Kernel: Rename some variables to arch-independent names 2021-06-29 20:03:36 +02:00
times.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
ttyname.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
umask.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
uname.cpp Kernel: Report correct architecture for uname() 2021-06-29 20:03:36 +02:00
unlink.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
unveil.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
utime.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
waitid.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00
write.cpp Kernel: Fix the return type for syscalls 2021-06-28 22:29:28 +02:00