rtapi_app_exit(3rtapi)
π rtapi_app_exit β the lil goodbye function π
okay bestie, welcome to the 3rtapi manual page, HAL section, and no we are NOT skipping any of it π«Ά
β¨ NAME β¨
rtapi_app_exit β the user-provided function that shuts a component down. it's giving "pack your bags, we're leaving" energy π
β¨ SYNTAX β¨
#include <rtapi_app.h>
void rtapi_app_exit(void) {...}
literally the whole signature. that's it. slay π
β¨ ARGUMENTS β¨
None. not a single one. zero. the void takes no parameters π³οΈβ¨
β¨ DESCRIPTION β¨
so the body of rtapi_app_exit is written by the component author (that's you, main character π), and usually it's a call to rtapi_exit or hal_exit, with other component-specific shutdown code happening before it. like, tidy up your own room before you call the moving truck, yk?
this code gets called when you unload a component that successfully initialized β meaning it returned zero from its rtapi_app_main. π
and no, it does NOT get called when the component didn't successfully initialize. if init flopped, this function never hears about it. the way that init failure justβ¦ never says bye π
β¨ RETURN CODE β¨
None. nothing to return, nothing to report, just vibes β¨
β¨ REALTIME CONSIDERATIONS β¨
the rtapi infrastructure calls this automatically, and it does so in an initialization context β which is not a realtime context. so lowkey don't go doing realtime things in here, okay? π§
β¨ SEE ALSO β¨
and that's the whole page bestie, we ate and left no crumbs π
LinuxCNC Documentation Β· dated 2008-05-26 Β· rtapi_app_exit(3rtapi) β periodt. π
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace-dev 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- 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