RTEMS | cpukit/rtems: Add taskgetcpuusage.c directive (!1347)

Abdullah Wasiq (@aftwasiq) gitlab at rtems.org
Wed Jul 15 16:59:56 UTC 2026




Abdullah Wasiq commented on a discussion on cpukit/include/rtems/rtems/tasks.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154513

 > + *   specified by ``id``.
 > + *
 > + * @retval ::RTEMS_INVALID_ADDRESS The ``ts`` parameter was NULL.
 > + *
 > + * @par Constraints
 > + * @parblock
 > + * The following constraints apply to this directive:
 > + *
 > + * - The directive may be called from within interrupt context.
 > + *
 > + * - The directive may be called from within device driver initialization
 > + *   context.
 > + *
 > + * - The directive may be called from within task context.
 > + *
 > + * - The directive will not cause the calling task to be preempted.

I'm not entirely sure but looking at other directives that use `_Thread_Get` it seems to match

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154513
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-1plu5oup058rykx2hedkburib-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260715/3563a8f9/attachment.htm>


More information about the bugs mailing list