Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

rtapi_init - Sets up RTAPI

Arguments

modname
              The name of this rtapi module

Description

rtapi_init  sets  up  the RTAPI.  It must be called by any module that intends to use the API, before any
       other RTAPI calls.

       modname can optionally point to a string that identifies the module.  The string  will  be  truncated  at
       RTAPI_NAME_LEN characters.  If modname is NULL, the system will assign a name.

Name

       rtapi_init - Sets up RTAPI

Realtime Considerations

       Call only from within non-realtime or realtime init/cleanup code, not from relatime tasks.

Return Value

       On  success,  returns  a positive integer module ID, which is used for subsequent calls to rtapi_xxx_new,
       rtapi_xxx_delete, and rtapi_exit.  On failure, returns an RTAPI error code.

LinuxCNC Documentation                             2006-10-12                                 rtapi_init(3rtapi)

Syntax


               int rtapi_init(const char *modname)

See Also