Quick question: How do I get the name of the scheduler from _Scheduler_Control

Gedare Bloom gedare at rtems.org
Thu Aug 13 19:32:07 UTC 2020


cpukit/include/rtems/rtems/support.h:RTEMS_INLINE_ROUTINE void
rtems_name_to_characters(

On Thu, Aug 13, 2020 at 1:15 PM Richi Dubey <richidubey at gmail.com> wrote:
>
> Hi,
>
> It's hard to find this with the help of cscope and I would appreciate your help in this.
>
> Is there a way to print the 'name' in :
> --------------------------------------------------------------
> struct _Scheduler_Control {
>   /**
>    * @brief Reference to a statically allocated scheduler context.
>    */
>   Scheduler_Context *context;
>
>   /**
>    * @brief The scheduler operations.
>    */
>   Scheduler_Operations Operations;
>
>   /**
>    * @brief The maximum priority value of this scheduler.
>    *
>    * It defines the lowest (least important) thread priority for this
>    * scheduler.  For example the idle threads have this priority.
>    */
>   Priority_Control maximum_priority;
>
>   /**
>    * @brief The scheduler name.
>    */
>   uint32_t name;
> ----------------------------------------------------------------------
>
> as a string? Is there a function that maps this int to string?
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list