XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions
sched.h File Reference
#include <linux/kernel.h>
#include <linux/cleanup.h>
#include <linux/spinlock.h>
#include <linux/lockdep.h>
#include <linux/nodemask_types.h>
#include <linux/pid.h>
Include dependency graph for sched.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  signal_struct
 
struct  task_struct
 

Macros

#define TASK_RUNNING   0
 
#define TASK_INTERRUPTIBLE   1
 
#define TASK_UNINTERRUPTIBLE   2
 
#define TASK_NORMAL   (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE)
 
#define TASK_WAKEKILL   4
 
#define __TASK_STOPPED   8
 
#define TASK_PARKED   16
 
#define MAX_SCHEDULE_TIMEOUT   ((long)(~0UL >> 1))
 
#define PF_KTHREAD   0x00200000U
 
#define current   (dcl_current())
 
#define set_current_state(s)   do { (void)(s); } while (0)
 
#define __set_current_state(s)   do { (void)(s); } while (0)
 
#define set_task_state(t, s)   do { (void)(t); (void)(s); } while (0)
 
#define __set_task_state(t, s)   do { (void)(t); (void)(s); } while (0)
 
#define cond_resched()   ((void)0)
 

Enumerations

enum  { TASK_COMM_LEN = 16 }
 

Functions

struct task_struct * dcl_current (void)
 
void schedule (void)
 
long schedule_timeout (long timeout)
 
long schedule_timeout_killable (long timeout)
 
int signal_pending (struct task_struct *tsk)
 
int fatal_signal_pending (struct task_struct *tsk)
 
void task_lock (struct task_struct *p)
 
void task_unlock (struct task_struct *p)
 
 DCL_LOCK_GUARD (task_lock, struct task_struct, task_lock(_T), task_unlock(_T)) long schedule_timeout_interruptible(long timeout)
 

Macro Definition Documentation

◆ __set_current_state

#define __set_current_state (   s)    do { (void)(s); } while (0)

◆ __set_task_state

#define __set_task_state (   t,
  s 
)    do { (void)(t); (void)(s); } while (0)

◆ __TASK_STOPPED

#define __TASK_STOPPED   8

◆ cond_resched

#define cond_resched ( )    ((void)0)

◆ current

#define current   (dcl_current())

◆ MAX_SCHEDULE_TIMEOUT

#define MAX_SCHEDULE_TIMEOUT   ((long)(~0UL >> 1))

◆ PF_KTHREAD

#define PF_KTHREAD   0x00200000U

◆ set_current_state

#define set_current_state (   s)    do { (void)(s); } while (0)

◆ set_task_state

#define set_task_state (   t,
  s 
)    do { (void)(t); (void)(s); } while (0)

◆ TASK_INTERRUPTIBLE

#define TASK_INTERRUPTIBLE   1

◆ TASK_NORMAL

#define TASK_NORMAL   (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE)

◆ TASK_PARKED

#define TASK_PARKED   16

◆ TASK_RUNNING

#define TASK_RUNNING   0

◆ TASK_UNINTERRUPTIBLE

#define TASK_UNINTERRUPTIBLE   2

◆ TASK_WAKEKILL

#define TASK_WAKEKILL   4

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TASK_COMM_LEN 

Function Documentation

◆ dcl_current()

struct task_struct * dcl_current ( void  )

◆ DCL_LOCK_GUARD()

DCL_LOCK_GUARD ( task_lock  ,
struct task_struct  ,
task_lock(_T)  ,
task_unlock(_T)   
)

◆ fatal_signal_pending()

int fatal_signal_pending ( struct task_struct *  tsk)

◆ schedule()

void schedule ( void  )

◆ schedule_timeout()

long schedule_timeout ( long  timeout)

◆ schedule_timeout_killable()

long schedule_timeout_killable ( long  timeout)

◆ signal_pending()

int signal_pending ( struct task_struct *  tsk)

◆ task_lock()

void task_lock ( struct task_struct *  p)

◆ task_unlock()

void task_unlock ( struct task_struct *  p)