pub unsafe extern "C" fn rtapi_exit(module_id: c_int) -> c_int
Expand description

‘rtapi_exit()’ shuts down and cleans up the RTAPI. It must be called prior to exit by any module that called rtapi_init. ‘module_id’ is the ID code returned when that module called rtapi_init(). Returns a status code. rtapi_exit() may attempt to clean up any tasks, shared memory, and other resources allocated by the module, but should not be relied on to replace proper cleanup code within the module. Call only from within user or init/cleanup code, not from realtime tasks.