source: rtems/cpukit/score/include/rtems/score/cpuset.h @ 64939bc

4.115
Last change on this file since 64939bc was d62b5ac9, checked in by Sebastian Huber <sebastian.huber@…>, on 04/04/14 at 07:37:23

score: Include missing header file

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 *  @file  rtems/score/cpuset.h
3 *
4 *  @brief Information About the CPU Set
5 *
6 *  This include file contains all information about the thread
7 *  CPU Set.
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_CPUSET_H
20#define _RTEMS_SCORE_CPUSET_H
21
22#include <rtems/score/basedefs.h>
23
24#ifdef __RTEMS_HAVE_SYS_CPUSET_H__
25
26#include <sys/cpuset.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/**
33 *  @defgroup ScoreCpuset
34 *
35 *  @ingroup Score
36 *
37 *  This handler encapsulates functionality which is used in the management
38 *  of thread's CPU set.
39 */
40/**@{*/
41
42/**
43 *  The following defines the control block used to manage the cpuset.
44 *  The names do not include affinity in the front in case the set is
45 *  ever used for something other than affinity.  The usage in thread
46 *  uses the attribute affinity such that accesses will read
47 *  thread->affinity.set.
48 */
49typedef struct {
50  /** This is the size of the set */
51  size_t                  setsize;
52  /** This is the preallocated space to store the set */
53  cpu_set_t               preallocated;
54  /** This is a pointer to the set in use */
55  cpu_set_t               *set;
56}   CPU_set_Control;
57
58/**@}*/
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* __RTEMS_HAVE_SYS_CPUSET_H__ */
65
66#endif /* _RTEMS_SCORE_CPUSET_H */
67/* end of include file */
Note: See TracBrowser for help on using the repository browser.