summaryrefslogtreecommitdiff
path: root/docs/man/man3/rtapi_app_exit.3rtapi
blob: 04f13f1968790e17ec359e5d16eb1512fda808d9 (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
.TH rtapi_app_exit "3rtapi" "2008-05-26" "LinuxCNC Documentation" "HAL"
.SH NAME

rtapi_app_exit \- User-provided function to shut down a component

.SH SYNTAX
.HP
void \fBrtapi_app_exit\fR(void) { \fI...\fR }
.SH ARGUMENTS
None

.SH DESCRIPTION
The body of \fBrtapi_app_exit\fR, which is provided by the component author,
generally consists of a call to rtapi_exit or hal_exit, preceded by other
component-specific shutdown code.

This code is called when unloading a component which successfully initialized
(i.e., returned zero from its \fBrtapi_app_main\fR).  It is not called when
the component did not successfully initialize.

.SH RETURN CODE
None.

.SH REALTIME CONSIDERATIONS
Called automatically by the rtapi infrastructure in an initialization (not
realtime) context.

.SH SEE ALSO
\fBrtapi_app_main(3rtapi)\fR,
\fBrtapi_exit(3rtapi)\fR,
\fBhal_exit(3hal)\fR