1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 20:05:06 +00:00
serenity/Kernel/FileSystem/SysFS/Subsystems/Kernel
Liav A 633006926f Kernel: Make the Jails' internal design a lot more sane
This is done with 2 major steps:
1. Remove JailManagement singleton and use a structure that resembles
    what we have with the Process object. This is required later for the
    second step in this commit, but on its own, is a major change that
    removes this clunky singleton that had no real usage by itself.
2. Use IntrusiveLists to keep references to Process objects in the same
    Jail so it will be much more straightforward to iterate on this kind
    of objects when needed. Previously we locked the entire Process list
    and we did a simple pointer comparison to check if the checked
    Process we iterate on is in the same Jail or not, which required
    taking multiple Spinlocks in a very clumsy and heavyweight way.
2023-03-12 10:21:59 -06:00
..
Constants Kernel+Userland: Add constants subdirectory at /sys/kernel directory 2023-02-19 13:47:11 +01:00
Network Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
Variables Kernel: Add helper function to check if a Process is in jail 2023-01-06 17:29:47 +01:00
CPUInfo.cpp Kernel: Fix CPUInfo error propagation fixme 2023-02-05 19:31:21 +01:00
CPUInfo.h Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
Directory.cpp Kernel+Userland: Add constants subdirectory at /sys/kernel directory 2023-02-19 13:47:11 +01:00
Directory.h Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
DiskUsage.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
DiskUsage.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
GlobalInformation.cpp Kernel: Mark Process::jail() method as const 2023-01-07 03:44:59 +03:30
GlobalInformation.h Kernel: Disallow jailed processes to read files in /sys/kernel directory 2022-12-03 05:47:58 -07:00
Interrupts.cpp Kernel+lsirq: Track per-CPU IRQ handler call counts 2022-11-19 15:39:30 +01:00
Interrupts.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
Jails.cpp Kernel: Make the Jails' internal design a lot more sane 2023-03-12 10:21:59 -06:00
Jails.h Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
Keymap.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
Keymap.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
Log.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
Log.h Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
MemoryStatus.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
MemoryStatus.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
PowerStateSwitch.cpp Kernel: Remove unnecessary include from SysFS PowerStateSwitch code 2023-02-19 08:13:04 +00:00
PowerStateSwitch.h Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
Processes.cpp Kernel: Protect Thread::m_name with a spinlock 2023-02-06 20:36:53 +01:00
Processes.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
Profile.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
Profile.h Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
SystemStatistics.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
SystemStatistics.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00
Uptime.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
Uptime.h Kernel: Allow read access sparingly to some /sys/kernel directory nodes 2022-12-03 05:47:58 -07:00