pub unsafe extern "C" fn rtapi_task_start(
    task_id: c_int,
    period_nsec: c_ulong
) -> c_int
Expand description

‘rtapi_task_start()’ starts a task in periodic mode. ‘task_id’ is a task ID from a call to rtapi_task_new(). The task must be in the “paused” state, or it will return -EINVAL. ‘period_nsec’ is the task period in nanoseconds, which will be rounded to the nearest multiple of the global clock period. A task period less than the clock period (including zero) will be set equal to the clock period. Call only from within init/cleanup code, not from realtime tasks.