<div dir="ltr"><div>Is there a preferred api style, or just mimic the linux kernel task?<br><a href="https://docs.huihoo.com/doxygen/linux/kernel/3.7/structtask__struct.html" target="_blank">https://docs.huihoo.com/doxygen/linux/kernel/3.7/structtask__struct.html</a><br><br>FreeRTOS has<br><a href="https://www.freertos.org/a00021.html#xTaskGetTickCount">https://www.freertos.org/a00021.html#xTaskGetTickCount</a><br><br>vxworks has a spy interface.<br><a href="https://www.ecb.torontomu.ca/~courses/ee8205/Data-Sheets/Tornado-VxWorks/vxworks/ref/spyLib.html#top">https://www.ecb.torontomu.ca/~courses/ee8205/Data-Sheets/Tornado-VxWorks/vxworks/ref/spyLib.html#top</a><br><br>I would probably prefer a function and pass in a const task identifier, and a pointer to a struct task to populate.<br>(Similar to the linux kernel example, possibly with the same names that get populated?)<br><br>Sam</div></div>