.TH "sched.h" 3teegris "Sun Oct 28 2018" "Version 2.0" "Samsung Internal API reference" \" -*- nroff -*-
.ad l
.nh
.SH NAME
sched.h \- Scheduler syscalls\&.  

.SH SYNOPSIS
.br
.PP
.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBcpu_set_t\fP"
.br
.in -1c
.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBBIT_PER_CPU\fP   (1)"
.br
.ti -1c
.RI "#define \fBMAX_CPUS\fP   (32)"
.br
.ti -1c
.RI "#define \fBBITS_TO_CPU_MASK\fP(bits)   (((bits) + BITS_PER_LONG \- 1) / BITS_PER_LONG)"
.br
.ti -1c
.RI "#define \fBBITMAP_ELT\fP(cpu)       ((cpu) / BITS_PER_LONG)"
.br
.ti -1c
.RI "#define \fB__CPUMASK\fP(cpu)         (1L << ((cpu) % BITS_PER_LONG))"
.br
.ti -1c
.RI "#define \fBDECLARE_BITMAP\fP(name,  bits)   unsigned long name[\fBBITS_TO_CPU_MASK\fP(bits)]"
.br
.ti -1c
.RI "#define \fBCPU_ZERO\fP(cpusetp)                                                                                          "
.br
.ti -1c
.RI "#define \fBCPU_SET\fP(cpu,  cpusetp)                                                                                  "
.br
.ti -1c
.RI "#define \fBCPU_CLR\fP(cpu,  cpusetp)                                                                                          "
.br
.ti -1c
.RI "#define \fBCPU_ISSET\fP(cpu,  cpusetp)                                                                                    "
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fBsched_yield\fP (void)"
.br
.RI "\fICauses 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\&. \fP"
.ti -1c
.RI "int \fBsched_setaffinity\fP (\fBpid_t\fP pid, size_t cpusetsize, \fBcpu_set_t\fP *mask)"
.br
.RI "\fISets the CPU affinity mask of the process whose \fCID\fP is pid to the value specified by \fCmask\fP\&. If pid is zero, then the calling process is used\&. \fP"
.ti -1c
.RI "int \fBsched_getaffinity\fP (\fBpid_t\fP pid, size_t cpusetsize, \fBcpu_set_t\fP *mask)"
.br
.RI "\fIWrites the affinity mask of the process whose \fCID\fP is pid into the \fC\fBcpu_set_t\fP\fP structure pointed to by \fCmask\fP\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Scheduler syscalls\&. 


.PP
\fBCopyright:\fP
.RS 4
(C) 2014-2018, Samsung Electronics Co\&., Ltd\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Samsung Internal API reference from the source code\&.
