File: rtapi_app_exit.3rtapi

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (34 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (3)
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
.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
.nf
.B #include <rtapi_app.h>
.HP
.BI "void rtapi_app_exit(void) {" ... "}"
.fi
.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