LinuxCNC Documentation
This page is 40% translated. Untranslated text is shown in English.

SYNTAX

#include <rtapi_app.h>
int rtapi_app_main(void);

ARGUMENTS

Intet

BESKRIVELSE

The body of rtapi_app_main, which is provided by the component author, generally consists of a call to rtapi_init or hal_init, followed by other component-specific initialization code.

RETURVERDI

Return 0 for success. Return a negative errno value (e.g., -EINVAL) on error. Existing code also returns RTAPI or HAL error values, but using negative errno values gives better diagnostics from insmod.

SANNTIDSBETRAKTNINGER

Called automatically by the rtapi infrastructure in an initialization (not realtime) context.

SE OGSÅ

rtapi_app_exit(3), rtapi_init(3), hal_init(3)