# static version of vTaskList

**URL:** <https://forums.freertos.org/t/static-version-of-vtasklist/6582>\
**Category:** Kernel\
**Created:** [May 24, 2017, 9:25pm UTC](https://forums.freertos.org/t/static-version-of-vtasklist/6582 "2017-05-24T21:25:14Z")\
**Posts on this page:** 2\
**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:** [May 24, 2017, 9:25pm UTC](https://forums.freertos.org/t/static-version-of-vtasklist/6582/1 "2017-05-24T21:25:14Z")

</div>

**[mastupristi](https://sourceforge.net/u/mastupristi/)** wrote on [Wednesday, May 24, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb89e81d/#817d):

FreeRTOS 9 provide new api to create Task, queues, etc. statically allocated.  
I wonder how to modify **vTaskList** so it does not need to call pvPortMalloc

best regards  
Max

---

<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:** [May 25, 2017, 4:14am UTC](https://forums.freertos.org/t/static-version-of-vtasklist/6582/2 "2017-05-25T04:14:01Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, May 25, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/cb89e81d/#817d/7ba6):

That would be tricky, but if you know the maximum number of tasks you application will ever create then you could pre-allocate the memory required.
