On Tue, May 25, 2021 at 2:20 PM Andreas Fritiofson <
[email protected]> wrote:

> Here's the full example I wrote yesterday. I've added a lookup by tcb as
> well. I noticed that your freertos.c needs to lookup by both and so you
> need two independent hash maps which must be in sync with tasks added and
> removed from both. I'd say that is actually a really big downside of using
> a hash map so I'd avoid that even if we had the map library in OpenOCD
> already. The dual lookup in the single list.h list is as you can see
> trivial.
>

That's a great reference! Thank you. Could we add it to list.h, or
somewhere else with a pointer in list.h to this example? (A pointer to the
mailing list email would suffice if we trust those links to survive.)

And responding to Antonio as well:

> The file list.h is taken from an old Linux kernel. Maybe there is a
> need to refresh/update it. It misses the doxigen headers.
> Kernel doc for list.h is here
> https://www.kernel.org/doc/html/v4.15/core-api/kernel-api.html


Can we add that link to list.h also? It's probably obvious to people who
are familiar with how the kernel is organized, but I did not think to go
looking there.

Tim

>


Reply via email to