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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
