-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkozos.h
36 lines (31 loc) · 1.09 KB
/
kozos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _KOZOS_H_INCLUDED_
#define _KOZOS_H_INCLUDED_
#include "defines.h"
#include "interrupt.h"
#include "syscall.h"
/* システム・コール */
kz_thread_id_t kz_run(kz_func_t func, char *name, int priority, int stacksize,
int argc, char *argv[]);
void kz_exit(void);
int kz_wait(void);
int kz_sleep(void);
int kz_wakeup(kz_thread_id_t id);
kz_thread_id_t kz_getid(void);
int kz_chpri(int priority);
void *kz_kmalloc(int size);
int kz_kmfree(void *p);
int kz_send(kz_msgbox_id_t id, int size, char *p);
kz_thread_id_t kz_recv(kz_msgbox_id_t id, int *sizep, char **pp);
int kz_setintr(softvec_type_t type, kz_handler_t handler);
/* サービス・コール */
int kx_wakeup(kz_thread_id_t id);
void *kx_kmalloc(int size);
int kx_kmfree(void *p);
int kx_send(kz_msgbox_id_t id, int size, char *p);
/* ライブラリ関数 */
void kz_start(kz_func_t func, char *name, int priority, int stacksize,
int argc, char *argv[]);
void kz_sysdown(void);
void kz_syscall(kz_syscall_type_t type, kz_syscall_param_t *param);
void kz_srvcall(kz_syscall_type_t type, kz_syscall_param_t *param);
#endif