RTEMS | CPU Usage api (!864)

Sam Price (@TheSamPrice) gitlab at rtems.org
Fri Feb 13 01:50:17 UTC 2026




Sam Price commented on a discussion on cpukit/include/rtems/cpuuse.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/864#note_142683

 > + * @retval ::RTEMS_INVALID_ID There was no thread associated with @a id.
 > + * @retval ::RTEMS_ILLEGAL_ON_REMOTE_OBJECT The thread resided on a remote node.
 > + */
 > +rtems_status_code rtems_cpu_usage_for_thread(
 > +  rtems_id               id,
 > +  rtems_cpu_usage_info  *info
 > +);
 > +
 > +/**
 > + * @brief Populate CPU usage information for the thread with the maximum usage.
 > + *
 > + * @retval ::RTEMS_SUCCESSFUL The CPU usage information was stored in @a info.
 > + * @retval ::RTEMS_INVALID_ADDRESS The @a info parameter was NULL.
 > + * @retval ::RTEMS_UNSATISFIED No thread usage information was available.
 > + */
 > +rtems_status_code rtems_cpu_usage_maximum( rtems_cpu_usage_info *info );

`  rtems_id           id;`
Is part of the `rtems_cpu_usage_info` struct so it is returned.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/864#note_142683
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260213/161f5048/attachment-0001.htm>


More information about the bugs mailing list