API Reference Manual  1.47.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 #include <odp/api/align.h>
15 #include <odp/api/std_types.h>
16 
17 #include <sched.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
27 #define ODP_CPUMASK_SIZE (sizeof(cpu_set_t) * 8)
28 
29 #define ODP_CPUMASK_STR_SIZE ((ODP_CPUMASK_SIZE + 3) / 4 + 3)
30 
36 typedef struct ODP_ALIGNED(8) odp_cpumask_t {
42  uint8_t _u8[ODP_CPUMASK_SIZE / 8];
44 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #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.