rtapi_task_start(3rtapi)
π rtapi_task_start β from the 3rtapi manual, bestie π
okay so you're here for rtapi_task_start, and honestly? iconic behavior. this is a <cyan>3rtapi</cyan> page, which means it's RTAPI-flavored, and it's about kicking a realtime task into periodic mode. let's get into it π¦
β¨ NAME β¨
rtapi_task_start β start a realtime task in periodic mode πΈ
β¨ SYNTAX β¨
int rtapi_task_start(int task_id, unsigned long period_nsec)
that's the whole signature, no notes, she's clean π
β¨ ARGUMENTS β¨
task_idβ a task ID that you got back from an earlier call tortapi_task_new. like, you can't just make one up, bestie, she needs to be a real one π«Άperiod_nsecβ the clock period, in nanoseconds, between iterations of a periodic task. yes nanoseconds. yes that's tiny. that's the whole point β
β¨ DESCRIPTION β¨
so rtapi_task_start starts a task in periodic mode. that's the vibe. π
but here's the thing β the task must be in the paused state. that's non-negotiable, that's the vibe check, she will not go otherwise π
β¨ REALTIME CONSIDERATIONS β¨
call this only from within init/cleanup code, not from realtime tasks. like literally do not. this is not a realtime-context function and she is not trying to be π
β¨ RETURN VALUE β¨
returns an RTAPI status code. that's it, that's the tea β
β¨ SEE ALSO β¨
the whole friend group, go read them too π
mwah π that's the page. this was pulled from the LinuxCNC Documentation, dated 2006-10-12, and the page itself is rtapi_task_start(3rtapi). go start a task, bestie, you got this β¨π
π¦ 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