⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thread.h

📁 newos is new operation system
💻 H
字号:
/*** Copyright 2001-2004, Travis Geiselbrecht. All rights reserved.** Distributed under the terms of the NewOS License.*/#ifndef _NEWOS_KERNEL_ARCH_THREAD_H#define _NEWOS_KERNEL_ARCH_THREAD_H#include <signal.h>// forward declarations to make the compiler happy and keep the header// interdependencies downstruct thread;struct vm_translation_map_struct;int arch_thread_init(kernel_args *ka);int arch_proc_init_proc_struct(struct proc *p, bool kernel);int arch_thread_init_thread_struct(struct thread *t);void arch_thread_context_switch(struct thread *t_from, struct thread *t_to, struct vm_translation_map_struct *new_tmap);int arch_thread_initialize_kthread_stack(struct thread *t, int (*start_func)(void));void arch_thread_dump_info(void *info);void arch_thread_enter_uspace(struct thread *t, addr_t entry, void *args, addr_t ustack_top);void arch_thread_switch_kstack_and_call(addr_t new_kstack, void (*func)(void *), void *arg);struct thread *arch_thread_get_current_thread(void);void arch_thread_set_current_thread(struct thread *t);int arch_setup_signal_frame(struct thread *t, struct sigaction *sa, int sig, int sig_mask);int64 arch_restore_signal_frame(void);void arch_check_syscall_restart(struct thread *t);// for any inline overrides#include INC_ARCH(kernel/arch,thread.h)#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -