I can see that FreeRTOS provides list.c file for using list functionality. I wanted to know whether I can use this in the application as there aren’t any examples which show how to do that. Also, does the list use static memory allocation or dynamic memory allocation? It would be of great help to clarify the above things.
As aggarg@ already said - the list is not part of the published API and doesn’t have examples because it is intended for internal use. That means its implementation and API can change at any time as such changes aren’t considered to break backward compatibility (as we don’t intend users to be touching the list anyway). Of course, being open source, the source file is available for you to use if you wish - just be forewarned of the risks of doing so. FreeRTOS uses quite strict data hiding for nearly all private data (such as the TCB, queue structures, etc.) so users can’t accidentally take a dependency on something that might change, but that isn’t the case for the lists as hiding that data has performance on convolution impact.