diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-06 17:17:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-06 17:55:47 +0200 |
commit | ee2a1f5af70c0c2dd21eb768c225e6e476b83dea (patch) | |
tree | 262ca24468821881d6841f0d54c8e1d9d5053a21 /Kernel/FileSystem | |
parent | 0fd50f02836e59ad6fbe97ba423fb517fa9348b7 (diff) | |
download | serenity-ee2a1f5af70c0c2dd21eb768c225e6e476b83dea.zip |
Kernel+LibCore: Note whether a process is kernel mode in /proc/all
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/ProcFS.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 7158c7f1ed..ad7e714795 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -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(); |