Implement process clone trampoline
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m10s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m10s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user