1 | /** |
---|
2 | * @file rtems/score/cpusetimpl.h |
---|
3 | * |
---|
4 | * @brief Implementation Prototypes for CPU Set |
---|
5 | * |
---|
6 | * This file contains the implementation prototypes for |
---|
7 | * CPU set methods. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 2014. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_SCORE_CPUSETIMPL_H |
---|
20 | #define _RTEMS_SCORE_CPUSETIMPL_H |
---|
21 | |
---|
22 | #include <rtems/score/cpuset.h> |
---|
23 | |
---|
24 | #ifdef __cplusplus |
---|
25 | extern "C" { |
---|
26 | #endif |
---|
27 | |
---|
28 | #ifdef __RTEMS_HAVE_SYS_CPUSET_H__ |
---|
29 | |
---|
30 | /** |
---|
31 | * _CPU_set_Is_valid |
---|
32 | * |
---|
33 | * This routine validates a cpuset size corresponds to |
---|
34 | * the system correct size, that at least one |
---|
35 | * valid cpu is set and that no invalid cpus are set. |
---|
36 | */ |
---|
37 | bool _CPU_set_Is_valid( const cpu_set_t *cpuset, size_t setsize ); |
---|
38 | |
---|
39 | /** |
---|
40 | * _CPU_set_Show |
---|
41 | * |
---|
42 | * This routine will print the value of the given cpuset. |
---|
43 | */ |
---|
44 | void _CPU_set_Show( const char *description, const cpu_set_t *cpuset); |
---|
45 | |
---|
46 | /** |
---|
47 | * _CPU_set_Show_default |
---|
48 | * |
---|
49 | * This routine will print the value of the default cpuset. |
---|
50 | */ |
---|
51 | void _CPU_set_Show_default( const char *description ); |
---|
52 | |
---|
53 | /** |
---|
54 | * _CPU_set_Default |
---|
55 | * |
---|
56 | * This routine returns the default cpuset for |
---|
57 | * this system. |
---|
58 | */ |
---|
59 | const CPU_set_Control *_CPU_set_Default(void); |
---|
60 | |
---|
61 | #endif |
---|
62 | |
---|
63 | /** |
---|
64 | * _CPU_set_Handler_initialization |
---|
65 | * |
---|
66 | * This routine validates a cpuset sets at least one |
---|
67 | * valid cpu and that it does not set any invalid |
---|
68 | * cpus. |
---|
69 | */ |
---|
70 | |
---|
71 | #if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) |
---|
72 | void _CPU_set_Handler_initialization(void); |
---|
73 | #else |
---|
74 | #define _CPU_set_Handler_initialization() do { } while ( 0 ) |
---|
75 | #endif |
---|
76 | |
---|
77 | /**@}*/ |
---|
78 | |
---|
79 | #ifdef __cplusplus |
---|
80 | } |
---|
81 | #endif |
---|
82 | #endif |
---|
83 | /* end of include file */ |
---|