Files
mop3/libprocess/process.h
kamkow1 b1648a146a
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m24s
Environment variables WIP, fix waiting scheduling issues + CE cancel proc
2026-03-17 00:01:15 +01:00

26 lines
587 B
C

#ifndef _LIBPROCESS_PROCESS_PROCESS_H
#define _LIBPROCESS_PROCESS_PROCESS_H
#include <page_size.h>
#include <system.h>
/* Size of process' stack */
#define STACK_SIZE (256 * PAGE_SIZE)
/* Process entry function */
typedef void (*process_func_t) (void*);
struct process_data {
void* arg_ptr;
process_func_t fn;
int pid;
void* stack;
};
/* Spawn a new process within the same procgroup with argument */
struct process_data* process_spawn (process_func_t func, void* argument_ptr);
void process_data_free (struct process_data* pdata);
#endif // _LIBPROCESS_PROCESS_PROCESS_H