Better proc_kill () and process cleanup
All checks were successful
Build documentation / build-and-deploy (push) Successful in 27s

This commit is contained in:
2026-01-06 01:19:11 +01:00
parent 6538fd8023
commit a8423fe657
10 changed files with 216 additions and 116 deletions

View File

@@ -39,20 +39,9 @@ struct proc {
struct pd pd;
spin_lock_t lock;
struct cpu* cpu;
// struct procw* procw; /* link to it's global struct */
atomic_int state;
};
/*
* struct proc is a member of a CPU's proc_run_q.
* struct procw is a process wrapper that is a member of
* a global process list.
*/
/* struct procw { */
/* struct procw* next; */
/* struct proc* proc; */
/* }; */
void proc_sched (void);
void proc_kill (struct proc* proc);
void proc_map (struct proc* proc, uintptr_t start_paddr, uintptr_t start_vaddr, size_t pages,