1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 12:45:07 +00:00

Kernel+LibCore: Note whether a process is kernel mode in /proc/all

This commit is contained in:
Andreas Kling 2021-04-06 17:17:53 +02:00
parent 0fd50f0283
commit ee2a1f5af7
3 changed files with 3 additions and 0 deletions

View file

@ -817,6 +817,7 @@ static bool procfs$all(InodeIdentifier, KBufferBuilder& builder)
process_object.add("amount_purgeable_volatile", process.space().amount_purgeable_volatile());
process_object.add("amount_purgeable_nonvolatile", process.space().amount_purgeable_nonvolatile());
process_object.add("dumpable", process.is_dumpable());
process_object.add("kernel", process.is_kernel_process());
auto thread_array = process_object.add_array("threads");
process.for_each_thread([&](const Thread& thread) {
auto thread_object = thread_array.add_object();