RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Files | Enumerations | Functions | Variables
Processor Mask

This group contains the implementation to support processor masks. More...

Files

file  processormask.h
 This header file provides the interfaces of the Processor Mask.
 
file  processormaskimpl.h
 This header file provides the interfaces of the Processor Mask.
 
file  processormaskcopy.c
 This source file contains the definition of _Processor_mask_The_one_and_only and the implementation of _Processor_mask_Copy().
 

Enumerations

enum  Processor_mask_Copy_status { PROCESSOR_MASK_COPY_LOSSLESS , PROCESSOR_MASK_COPY_PARTIAL_LOSS , PROCESSOR_MASK_COPY_COMPLETE_LOSS , PROCESSOR_MASK_COPY_INVALID_SIZE }
 

Functions

typedef __BITSET_DEFINE (Processor_mask, CPU_MAXIMUM_PROCESSORS) Processor_mask
 A bit map which is large enough to provide one bit for each processor in the system.
 
Processor_mask_Copy_status _Processor_mask_Copy (long *dst, size_t dst_size, const long *src, size_t src_size)
 Copies one mask to another.
 

Variables

const Processor_mask _Processor_mask_The_one_and_only
 

Detailed Description

This group contains the implementation to support processor masks.

The processor mask provides a bit map large enough to provide one bit for each processor in the system. It is a fixed size internal data type provided for efficiency in addition to the API level cpu_set_t.

Function Documentation

◆ _Processor_mask_Copy()

Processor_mask_Copy_status _Processor_mask_Copy ( long *  dst,
size_t  dst_size,
const long *  src,
size_t  src_size 
)

Copies one mask to another.

Parameters
[out]dstThe destination of the copy operation.
dst_sizeThe size of dst.
srcThe source of the copy operation.
src_sizeThe size of src.
Return values
PROCESSOR_MASK_COPY_LOSSLESSIt is guaranteed that the copy operation is lossless.
PROCESSOR_MASK_COPY_PARTIAL_LOSSPartial loss happened due to the sizes of src and dst.
PROCESSOR_MASK_COPY_COMPLETE_LOSSComplete loss happened due to the sizes of src and dst.
PROCESSOR_MASK_COPY_INVALID_SIZEOne of the arguments sizes is invalid (bigger than the size of a long).