# Calling vTaskList() inside IDLE task 

**URL:** <https://forums.freertos.org/t/calling-vtasklist-inside-idle-task/7054>\
**Category:** Kernel\
**Created:** [March 13, 2018, 8:34am UTC](https://forums.freertos.org/t/calling-vtasklist-inside-idle-task/7054 "2018-03-13T08:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 13, 2018, 8:34am UTC](https://forums.freertos.org/t/calling-vtasklist-inside-idle-task/7054/1 "2018-03-13T08:34:19Z")

</div>

**[michaeln32](https://sourceforge.net/u/michaeln32/)** wrote on [Tuesday, March 13, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/5d49bb8b/#b0dd):

Hi

Is it safe to call the API vTaskList() inside Idle task ?

Thank you

Michael

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 13, 2018, 3:47pm UTC](https://forums.freertos.org/t/calling-vtasklist-inside-idle-task/7054/2 "2018-03-13T15:47:55Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 13, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/5d49bb8b/#9406):

vTaskList() does not call any blocking functions, so yes it should be safe. You need to make sure you give the idle task enough stack space, especially if you are going to use formatted text output. The stack size for the idle task is set by configMINIMAL\_STACK\_SIZE in FreeRTOSConfig.h.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 14, 2018, 3:35pm UTC](https://forums.freertos.org/t/calling-vtasklist-inside-idle-task/7054/3 "2018-03-14T15:35:42Z")

</div>

**[michaeln32](https://sourceforge.net/u/michaeln32/)** wrote on [Wednesday, March 14, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/5d49bb8b/#35c9):

Thank you very much Richard.
