1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

Generate a basic /proc/summary file with some info about all tasks.

This commit is contained in:
Andreas Kling 2018-10-23 12:44:46 +02:00
parent ed2422d7af
commit 63e253bac9
5 changed files with 35 additions and 5 deletions

View file

@ -19,6 +19,8 @@ public:
static Task* create(const String& path, uid_t, gid_t);
Task(String&& name, uid_t, gid_t);
static Vector<Task*> allTasks();
#ifdef TASK_SANITY_CHECKS
static void checkSanity(const char* msg = nullptr);
#else
@ -58,6 +60,8 @@ public:
TSS32& tss() { return m_tss; }
State state() const { return m_state; }
IPC::Handle handle() const { return m_handle; }
uid_t uid() const { return m_uid; }
uid_t gid() const { return m_gid; }
const FarPtr& farPtr() const { return m_farPtr; }