logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rtapi_app_main - User-provided function to initialize a component

Arguments

       None

Description

       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.

Name

       rtapi_app_main - User-provided function to initialize a component

Realtime Considerations

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

Return Value

       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.

See Also

rtapi_app_exit(3rtapi), rtapi_init(3rtapi), hal_init(3hal)

LinuxCNC Documentation                             2008-05-26                             rtapi_app_main(3rtapi)

Syntax

#include<rtapi_app.h>intrtapi_app_main(void){...}

See Also