listGET_OWNER_OF_NEXT_ENTRY()

michaeln32 wrote on Monday, April 09, 2018:

Hi

Is the API listGET_OWNER_OF_NEXT_ENTRY() include all the tasks in the system include
ready , suspend, block , delete tasks ?

rtel wrote on Monday, April 09, 2018:

That macro (which is not documented, or intended for application use on
internal FreeRTOS lists) doesn’t have any knowledge of how a list is
being used. It only works on one list at a time, and FreeRTOS denoted
he state of a task by which ‘state list’ the task appears in. So Ready
state tasks, appear in one of the Ready lists, Blocked tasks appear in
one of the Blocked lists, etc. So the answer to your question is I
think “No”, it can’t do, as one list will only ever contain tasks of the
same state.

michaeln32 wrote on Tuesday, April 10, 2018:

Ok Richard ,Thank you.

If I have a ‘tasks ready list’ with only one task in it - Is the current item of this list (pxFirstTCB) will be equal to the next item of this list (pxNextTCB) ?

In other words - Is it possiable to ‘miss’ a single task in a list ?