API Reference Manual
1.48.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
31
typedef
struct
odp_cpumask_s
odp_cpumask_t
;
32
38
struct
ODP_ALIGNED
(8)
odp_cpumask_s
{
44
uint8_t _u8[
ODP_CPUMASK_SIZE
/ 8];
45
};
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
align.h
ODP alignments.
std_types.h
Standard C language types and definitions for ODP.
ODP_ALIGNED
#define ODP_ALIGNED(x)
Defines type/struct/variable alignment in bytes.
ODP_CPUMASK_SIZE
#define ODP_CPUMASK_SIZE
Maximum cpumask size, this definition limits the number of individual CPUs that can be accessed in th...
odp_cpumask_s
Definition:
api/abi-default/cpumask.h:38
include
odp
api
abi-default
cpumask.h
Generated by
1.9.1