L4Re Operating System Framework
Interface and Usage Documentation
|
CPU sets. More...
#include <scheduler.h>
Public Member Functions | |
unsigned char | granularity () const |
unsigned | offset () const |
void | set (unsigned char granularity, unsigned offset) |
Set offset and granularity. | |
Data Fields | |
l4_umword_t | gran_offset |
Combination of granularity and offset. | |
l4_umword_t | map |
Bitmap of CPUs. | |
CPU sets.
Definition at line 69 of file scheduler.h.
|
inline |
Definition at line 92 of file scheduler.h.
References gran_offset.
Referenced by set().
|
inline |
Definition at line 94 of file scheduler.h.
References gran_offset.
Referenced by set().
|
inline |
Set offset and granularity.
granularity | Granularity in log2 notation. |
offset | Offset. Must be a multiple of 2^granularity. |
Definition at line 101 of file scheduler.h.
References gran_offset, granularity(), and offset().
l4_umword_t l4_sched_cpu_set_t::gran_offset |
Combination of granularity and offset.
The granularity defines how many CPUs each bit in map describes. And the offset is the number of the first CPU described by the first bit in the bitmap.
MSB | LSB |
---|---|
8bit granularity | 24bit offset .. |
Definition at line 83 of file scheduler.h.
Referenced by granularity(), L4::Scheduler::info(), l4_sched_cpu_set(), offset(), and set().