2025-05-28 14:41:02 -05:00
|
|
|
#ifndef _PROCESSES_H
|
|
|
|
|
#define _PROCESSES_H
|
|
|
|
|
|
2025-06-27 14:48:06 -05:00
|
|
|
#include <types.h>
|
|
|
|
|
#include <drivers/elf.h>
|
2025-05-28 14:41:02 -05:00
|
|
|
|
|
|
|
|
|
2026-03-20 16:57:08 -05:00
|
|
|
|
|
|
|
|
typedef uint32_t pid_t;
|
|
|
|
|
|
2025-06-27 14:48:06 -05:00
|
|
|
typedef struct process {
|
2026-03-20 16:57:08 -05:00
|
|
|
pid_t id;
|
|
|
|
|
pid_t group;
|
2025-05-28 14:41:02 -05:00
|
|
|
|
2025-06-27 14:48:06 -05:00
|
|
|
elf_executable_t* exe;
|
|
|
|
|
} process_t;
|
|
|
|
|
|
2026-03-20 16:57:08 -05:00
|
|
|
|
|
|
|
|
pid_t make_process(char* name, char* group, elf_executable_t* exe);
|
2025-05-28 14:41:02 -05:00
|
|
|
|
|
|
|
|
#endif
|