syscalls: implement sysctl and add process listing

This commit is contained in:
Matheus
2026-06-09 17:47:27 -03:00
parent 770a300618
commit 659b29ef4e
18 changed files with 428 additions and 8 deletions
+8
View File
@@ -13,6 +13,8 @@
#include <kernel/thread.h>
#include <kernel/sysctl.h>
#ifdef __x86_64__
#include <arch/ldt.h>
#endif
@@ -90,6 +92,11 @@ typedef struct proc_t {
itimer_t virtualtime;
itimer_t profiling;
} timer;
char name[SYS_CTL_KERN_PROC_INFO_NAME_SIZE];
timespec_t start_time;
spinlock_t runtime_lock;
timespec_t total_runtime;
} proc_t;
@@ -125,5 +132,6 @@ void proc_init(void);
void proc_exit(void);
void proc_run_init();
size_t proc_get_count(void);
size_t proc_get_table(proc_t **procs, size_t count);
#endif