rtapi_exit(3rtapi)
β¨ rtapi_exit β¨
okay so bestie, welcome to the RTAPI manual β this one's rtapi_exit(3rtapi), and it's literally the "bye bye" button for RTAPI. short page, but important, so stay with me π«Ά
πΈ NAME πΈ
rtapi_exit β Shut down RTAPI
π SYNTAX π
int rtapi_exit(int module_id)
π ARGUMENTS π
module_idβ the rtapi module identifier that an earlier call tortapi_inithanded you back. yes, the same one. don't make one up, she'll know π
π¦ DESCRIPTION π¦
rtapi_exit shuts down and cleans up the RTAPI. that's the whole vibe: teardown, tidy up, leave the place spotless β¨
and it is not optional β it must be called prior to exit by any module that called rtapi_init. like, if you opened it, you close it. no ghost modules haunting the place π
π REALTIME CONSIDERATIONS π
call this only from within non-realtime or realtime init/cleanup code. do NOT call it from realtime tasks. like, not the move, bestie π
β RETURN VALUE β
returns a RTAPI status code. that's it, that's the tea π
real talk: if you calledrtapi_init, you owe RTAPI anrtapi_exit. periodt π
mwah, that's the page π this lil gem comes from the LinuxCNC Documentation, dated 2006-10-12 β vintage but still iconic, no cap. take care of your modules and they'll take care of you π§β¨
π¦ where this page comes from
- debian trixie: linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace-dev 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms