Trying to get Idle Task ID

Fabrício de Novaes Kucinskis fabricio at
Wed Jan 27 19:33:25 UTC 2010

Hi all,

I’m trying to get the total amount of time used by any task (in
microseconds) as an unsigned long value that I can insert in a telemetry

For this purpose, my code is based on "rtems_cpu_usage_report_with_plugin",
and, AFAICT, it works correctly.

The function receives the task ID, loops through the Objects Information
Table, identifies the correct task and gets the amount of time.

The problem is that I cannot get the Idle task ID. I tried
"rtems_task_ident(rtems_build_name('I', 'D', 'L', 'E'))", but I receive an
"RTEMS_INVALID_NAME" error. I tried with "idle" and "Idle", with no results.
I also tried a constant from the CPU Usage chapter in the RTEMS C Users
Manual, "0x0401001", and got the same error.

>From an old (2006) post, I discovered that the Idle task name is a string,
so I tried to cast that string into a rtems_name variable. No way!

So, how can I get the Idle task name or ID? (I'm using RTEMS 4.8.1)

Thanks in advance,

Fabrício de Novaes Kucinskis - DEA / INPE
Onboard Data Handling Group - SUBORD
Aerospace Electronics Division
Brazilian National Institute for Space Research

More information about the users mailing list