| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Functions
sched.h File Reference

Scheduler syscalls. More...

Go to the source code of this file.

## Data Structures
struct | cpu_set_t

## Macros
#define | BIT_PER_CPU (1)
#define | MAX_CPUS (32)
#define | BITS_TO_CPU_MASK(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG)
#define | BITMAP_ELT(cpu) ((cpu) / BITS_PER_LONG)
#define | __CPUMASK(cpu) (1L << ((cpu) % BITS_PER_LONG))
#define | DECLARE_BITMAP(name, bits) unsigned long name[BITS_TO_CPU_MASK(bits)]
#define | CPU_ZERO(cpusetp)
#define | CPU_SET(cpu, cpusetp)
#define | CPU_CLR(cpu, cpusetp)
#define | CPU_ISSET(cpu, cpusetp)

## Functions
int | sched_yield (void)
| Causes the calling thread to relinquish the CPU. The thread is moved to the end of the queue for its static priority and a new thread gets to run. More...
int | sched_setaffinity (pid_t pid, size_t cpusetsize, cpu_set_t *mask)
| Sets the CPU affinity mask of the process whose `ID` is pid to the value specified by `mask`. If pid is zero, then the calling process is used. More...
int | sched_getaffinity (pid_t pid, size_t cpusetsize, cpu_set_t *mask)
| Writes the affinity mask of the process whose `ID` is pid into the `cpu_set_t` structure pointed to by `mask`. More...

## Detailed Description

Scheduler syscalls.

Copyright
  (C) 2012-2019, Samsung Electronics Co., Ltd.