This group contains the implementation to support processor masks.
More...
|
enum | Processor_mask_Copy_status { PROCESSOR_MASK_COPY_LOSSLESS
, PROCESSOR_MASK_COPY_PARTIAL_LOSS
, PROCESSOR_MASK_COPY_COMPLETE_LOSS
, PROCESSOR_MASK_COPY_INVALID_SIZE
} |
|
|
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.
|
|
|
const Processor_mask | _Processor_mask_The_one_and_only |
|
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.
◆ _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] | dst | The destination of the copy operation. |
| dst_size | The size of dst. |
| src | The source of the copy operation. |
| src_size | The size of src. |
- Return values
-
PROCESSOR_MASK_COPY_LOSSLESS | It is guaranteed that the copy operation is lossless. |
PROCESSOR_MASK_COPY_PARTIAL_LOSS | Partial loss happened due to the sizes of src and dst. |
PROCESSOR_MASK_COPY_COMPLETE_LOSS | Complete loss happened due to the sizes of src and dst. |
PROCESSOR_MASK_COPY_INVALID_SIZE | One of the arguments sizes is invalid (bigger than the size of a long). |