Files
kernel/include/sys/thread.h
T

18 lines
326 B
C

#pragma once
#include "sys/amd64/asm/asm_thread.h"
#include "sys/mm.h"
struct thread {
// Platform data
struct thread_data data;
mm_space_t space;
pid_t pid;
struct thread *prev, *next;
};
pid_t thread_alloc_pid(int is_user);
int thread_init(struct thread *thr, uintptr_t entry, void *arg, int user);