Files
mop3/libprocess/process.h
kamkow1 b0b69f3e9e
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m26s
Add sys_exec () and libprocess wrapper, fix ramdisk tar parsing
2026-02-14 21:50:09 +01:00

25 lines
588 B
C

#ifndef _LIBPROCESS_PROCESS_PROCESS_H
#define _LIBPROCESS_PROCESS_PROCESS_H
#include <m/system.h>
/* 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);
/* Run ELF process */
int process_exec (const char* path);
#endif // _LIBPROCESS_PROCESS_PROCESS_H