From 8da0171e5ca3492cdb34422184a1c96acd0b5165 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 21 May 2022 21:02:17 +0300 Subject: add status info to memory mappings + next up would probably be to start working on process/thread relationships, largely as documented. Still not entirely sure about how I want to handle fork, but I suppose I might figure it out at some point. --- include/apos/tcb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/apos/tcb.h') diff --git a/include/apos/tcb.h b/include/apos/tcb.h index 821d822..11e1b5a 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -28,6 +28,9 @@ struct tcb { /* vm root branch */ struct vm_branch *b_r; + + struct tcb *parent; + struct tcb *next; }; void init_tcbs(); @@ -41,4 +44,6 @@ void use_tcb(struct tcb *); struct tcb *get_tcb(id_t tid); +stat_t clone_tcb_maps(struct tcb *); + #endif /* APOS_TCB_H */ -- cgit v1.3