Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Data Structures | Macros | Enumerations | Variables
kernel.h File Reference
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/limits.h>
#include <sys/resource.h>
#include <task.h>
#include <common/list.h>
#include <common/util.h>
#include <fs/fs.h>
#include <kernel/kfifo.h>
#include <kernel/time.h>
#include <kernel/wait.h>
#include "kconfig.h"
Include dependency graph for kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  syscall_info
 
struct  staged_handler_info
 
struct  task_struct
 
struct  thread_info
 

Macros

#define DEF_SYSCALL(func, _num)
 
#define SYSCALL_ARG(thread, type, idx)   *((type *) thread->syscall_args[idx])
 

Enumerations

enum  {
  THREAD_WAIT , THREAD_READY , THREAD_RUNNING , THREAD_SUSPENDED ,
  THREAD_TERMINATED
}
 
enum  { KERNEL_THREAD = 0 , USER_THREAD = 1 }
 

Variables

enum { ... }  THREAD_STATUS
 
enum { ... }  THREAD_TYPE
 

Macro Definition Documentation

◆ DEF_SYSCALL

#define DEF_SYSCALL (   func,
  _num 
)
Value:
{ \
.handler_func = (unsigned long) sys_##func, .num = _num \
}