API Reference Manual 1.51.0
Loading...
Searching...
No Matches
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
20extern "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
32
44 uint8_t _u8[ODP_CPUMASK_SIZE / 8];
45};
46
47#ifdef __cplusplus
48}
49#endif
50
51#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...