aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include/odp_thread_internal.h
blob: 6342cc4204176639a86ceed25255195783361b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (c) 2021, Nokia
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef ODP_THREAD_INTERNAL_H_
#define ODP_THREAD_INTERNAL_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

/**
 * Read CPU IDs of active ODP threads
 *
 * @param[out] cpu_ids      CPU ID array
 * @param      max_num      Maximum number of CPU IDs to write
 *
 * @return Number of CPU IDs written to the output array
 */
int _odp_thread_cpu_ids(unsigned int cpu_ids[], int max_num);

/**
 * Read current epoch value of thread mask all
 *
 * @return Thread mask all epoch value
 */
uint64_t _odp_thread_thrmask_epoch(void);

#ifdef __cplusplus
}
#endif
#endif