In a follow-up patch (CB:90962), the list will be changed to a circular one, and list_node fields 'next' and 'prev' will become private to the implementation. To allow smooth transition to circular lists for all call sites, add the following functions to the list API: - list_is_empty() - list_next() - list_prev() - list_first() - list_last() - list_length() All list API call sites are expected to use the public API instead of the raw 'next' and 'prev' pointers. Change-Id: Ib1040f5caab8550ea52db9b55a074d7d79c591e5 Signed-off-by: Yu-Ping Wu <yupingso@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90961 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> |
||
|---|---|---|
| .. | ||
| acpi | ||
| commonlib | ||
| console | ||
| data/lib | ||
| device | ||
| drivers | ||
| helpers | ||
| include | ||
| lib | ||
| mock | ||
| stubs | ||
| Makefile.common | ||
| Makefile.mk | ||