hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// ** The above line should force tbl to be a preprocessor **
// Man page for corectl
//
// Copyright (C) 2015 Philippe Gerum <rpm@xenomai.org>
//
// You may distribute under the terms of the GNU General Public
// License as specified in the file COPYING that comes with the
// Xenomai distribution.
//
//
CORECTL(1)
==========
:doctype: manpage
:revdate: 2015/02/14
:man source: Xenomai
:man version: {xenover}
:man manual: Xenomai Manual
 
NAME
----
corectl - Cobalt core control interface
 
SYNOPSIS
---------
*corectl* [ options ]
 
DESCRIPTION
------------
*corectl* is a utility to 
 
OPTIONS
--------
*corectl* accepts the following options:
 
*--stop [<grace-seconds>]*:: Stop the real-time services. The
following actions are taken in sequence:
 
- termination of all Xenomai threads running in user-space, waiting
for them to exit for at most +grace-seconds+ if specified, or
indefinitely otherwise.
 
- active RTDM drivers are notified of the transition to the stopped
state.
 
- termination of lingering RTDM threads (i.e. running in kernel
space), waiting for them to exit for at most 3 seconds.
 
- deactivation of the real-time timing services, control of the
hardware timer on all real-time CPUs is fully released to the host
kernel.
 
Once stopped, the Cobalt core rejects all connection requests from
regular applications.
 
*--start*:: Start the real-time services. The following actions are
taken in sequence:
 
- activation of the real-time timing services, the Cobalt core takes
full control over the hardware timer on all real-time CPUs.
 
- loaded RTDM drivers are notified of the transition to the running
state.
 
Once started, the Cobalt core accepts all connection requests from
regular applications anew.
 
*--status*:: Display the current Cobalt core status. The following
statuses can be returned:
 
- _disabled_ denotes a fully inoperative core. This state cannot be
reached using the *corectl* command, but only by passing the
+xenomai.state=disabled+ option on the kernel command line. A disabled
core cannot be started dynamically using *corectl*.
 
- _stopped_ means that no further connection request will be accepted
from applications, the real-time services are currently
unavailable. The Cobalt core can be stopped at boot time by passing
the +xenomai.state=stopped+ option on the kernel command line. A
stopped core can be started dynamically using *corectl --start*,
switching it to the _running_ state.
 
- _running_ denotes an active state of the real-time core, application
requests are processed normally. This is the default state entered at
boot time, which corresponds to passing the +xenomai.state=enabled+
option on the kernel command line.
 
- _teardown_ denotes a real-time system in the process of stopping all
services. This transient status should not be seen unless some threads
are unexpectedly lingering despite a termination request was issued.
 
- _warmup_ denotes a real-time system in the process of starting all
services. This transient status should not be seen unless an RTDM
driver gets stuck while switching to active mode.
 
*--help*::
Display a short help.
 
If no option is passed, +--status+ is assumed by default.
 
VERSIONS
--------
*corectl* appeared in Xenomai 3.0 for the _Cobalt_ real-time core.
 
AUTHOR
-------
*corectl* was written by Philippe Gerum <rpm@xenomai.org>.