L4Re - L4 Runtime Environment
l4_sched_cpu_set_t Struct Reference

CPU sets. More...

#include <scheduler.h>

+ Collaboration diagram for l4_sched_cpu_set_t:

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. More...
 
l4_umword_t map
 Bitmap of CPUs.
 

Detailed Description

CPU sets.

Examples:
examples/sys/migrate/thread_migrate.cc.

Definition at line 44 of file scheduler.h.

Member Function Documentation

◆ granularity()

unsigned char l4_sched_cpu_set_t::granularity ( ) const
inline
Returns
Get granularity value

Definition at line 66 of file scheduler.h.

Referenced by l4_sched_cpu_set(), and set().

+ Here is the caller graph for this function:

◆ offset()

unsigned l4_sched_cpu_set_t::offset ( ) const
inline
Returns
Get offset value

Definition at line 68 of file scheduler.h.

Referenced by l4_sched_cpu_set(), and set().

+ Here is the caller graph for this function:

Field Documentation

◆ gran_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 numer of the first CPU described by the first bit in the bitmap.

Precondition
offset must be a multiple of 2^granularity.
MSB LSB
8bit granularity 24bit offset ..

Definition at line 57 of file scheduler.h.

Referenced by l4_sched_cpu_set().


The documentation for this struct was generated from the following file: