source: rtems/cpukit/score/include/rtems/score/cpusetimpl.h @ cfe457f

4.115
Last change on this file since cfe457f was cfe457f, checked in by Jennifer Averett <jennifer.averett@…>, on 03/06/14 at 14:37:21

score: score: Add get/set affinity to Scheduler Framework.

  • Property mode set to 100644
File size: 1.7 KB
Line 
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
25extern "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 */
37bool _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 */
44void _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 */
51void _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 */
59const 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 )
72void _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 */
Note: See TracBrowser for help on using the repository browser.