Doc comment libprocess process.h

This commit is contained in:
2026-02-13 01:02:23 +01:00
parent 369efaec2e
commit 3f37cbce49

View File

@@ -3,12 +3,19 @@
#include <m/system.h> #include <m/system.h>
/* Size of process' stack */
#define STACK_SIZE (256 * PAGE_SIZE) #define STACK_SIZE (256 * PAGE_SIZE)
/* Process entry function */
typedef void (*process_func_t) (void); 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); int process_spawn (process_func_t func, void* argument_ptr);
/* Quit the current process */
int process_quit (void); int process_quit (void);
/* Get process argument pointer */
void* process_argument (void); void* process_argument (void);
#endif // _LIBPROCESS_PROCESS_PROCESS_H #endif // _LIBPROCESS_PROCESS_PROCESS_H