driver list: implement iteration over linker section content
commitab76a692387a342d22bd08d6a1818610186518ba
authorGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 20:01:35 +0000 (9 22:01 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 20:27:08 +0000 (9 22:27 +0200)
treef8624e37c128773f9f72f276cef9841197f54889
parentae83ff06608ad50febdadda863c70cfa8d37496e
driver list: implement iteration over linker section content

Extend the drivers.c source file, iterate over the driver descriptors
pointer array which was collected in the linker list. This version only
requires the start symbol, because the list is NULL terminated (by means
of linker script instructions).

This implementation provides the same two "entry points" of iteration
(listing) and execution of the available drivers as an earlier version
did. Yet happens to internally execute both alternatives of traversing
the linked list that was created at runtime, as well as the array which
was constructed at link time. So that users can compare screen output
between implementation variants.
src/drivers.c