API Reference Manual  1.45.0
api/abi-default/cpumask.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_ABI_CPUMASK_H_
12 #define ODP_ABI_CPUMASK_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
22 #include <odp/api/std_types.h>
23 #include <odp/api/align.h>
24 #include <sched.h>
25 
26 #define ODP_CPUMASK_SIZE (sizeof(cpu_set_t) * 8)
27 
28 #define ODP_CPUMASK_STR_SIZE ((ODP_CPUMASK_SIZE + 3) / 4 + 3)
29 
35 typedef struct ODP_ALIGNED(8) odp_cpumask_t {
41  uint8_t _u8[ODP_CPUMASK_SIZE / 8];
43 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif
ODP alignments.
Standard C language types and definitions for ODP.
#define ODP_ALIGNED(x)
Defines type/struct/variable alignment in bytes.
#define ODP_CPUMASK_SIZE
Maximum cpumask size, this definition limits the number of individual CPUs that can be accessed in th...
struct odp_cpumask_t odp_cpumask_t
CPU mask.