Implement process clone trampoline
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m10s

This commit is contained in:
2026-03-07 20:20:29 +01:00
parent bf99bedfc5
commit ab8856cf4b
9 changed files with 68 additions and 12 deletions

View File

@@ -8,9 +8,15 @@
#define STACK_SIZE (256 * PAGE_SIZE)
/* Process entry function */
typedef void (*process_func_t) (void);
typedef void (*process_func_t) (void*);
struct process_data {
void* arg_ptr;
process_func_t fn;
int pid;
};
/* Spawn a new process within the same procgroup with argument */
int process_spawn (process_func_t func, void* argument_ptr);
struct process_data* process_spawn (process_func_t func, void* argument_ptr);
#endif // _LIBPROCESS_PROCESS_PROCESS_H