hal_exit.3hal
1 .TH hal_exit "3hal" "2006-10-12" "LinuxCNC Documentation" "HAL" 2 .SH NAME 3 4 hal_exit \- Shut down HAL 5 6 .SH SYNTAX 7 .HP 8 int hal_exit(int \fIcomp_id\fR) 9 10 .SH ARGUMENTS 11 .IP \fIcomp_id\fR 12 A HAL component identifier returned by an earlier call to \fBhal_init\fR. 13 14 .SH DESCRIPTION 15 \fBhal_exit\fR shuts down and cleans up HAL and RTAPI. It must be 16 called prior to exit by any module that called \fBhal_init\fR. 17 18 .SH REALTIME CONSIDERATIONS 19 Call only from within user or init/cleanup code, not from realtime tasks. 20 21 .SH RETURN VALUE 22 Returns a HAL status code. 23