From 3f37cbce498f13166de9e18ea0f820f13b7366b5 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Fri, 13 Feb 2026 01:02:23 +0100 Subject: [PATCH] Doc comment libprocess process.h --- libprocess/process.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libprocess/process.h b/libprocess/process.h index 40d2a32..9f21ffd 100644 --- a/libprocess/process.h +++ b/libprocess/process.h @@ -3,12 +3,19 @@ #include +/* Size of process' stack */ #define STACK_SIZE (256 * PAGE_SIZE) +/* Process entry function */ typedef void (*process_func_t) (void); +/* Spawn a new process within the same procgroup with argument */ int process_spawn (process_func_t func, void* argument_ptr); + +/* Quit the current process */ int process_quit (void); + +/* Get process argument pointer */ void* process_argument (void); #endif // _LIBPROCESS_PROCESS_PROCESS_H