91ef8da010
Currently, there is no easy way to know in advance how many entries a list parsed by ofw_bus_parse_xref_list_alloc() in sys/dev/ofw/ofw_bus_subr.c has. This patch: * teaches the existing function about handling idx == -1 and returning how big the set is; then renames it as _internal; * create a new function that asserts idx != -1, so the old API is maintained; * add a new function that returns just the list length. Submitted by: Stanislav Galabov <sgalabov@gmail.com> Differential Revision: https://reviews.freebsd.org/D5043 |
||
---|---|---|
.. | ||
ofw_bus_if.m | ||
ofw_bus_subr.c | ||
ofw_bus_subr.h | ||
ofw_bus.h | ||
ofw_console.c | ||
ofw_cpu.c | ||
ofw_cpu.h | ||
ofw_disk.c | ||
ofw_fdt.c | ||
ofw_if.m | ||
ofw_iicbus.c | ||
ofw_pci.h | ||
ofw_standard.c | ||
ofw_subr.c | ||
ofw_subr.h | ||
ofwbus.c | ||
ofwvar.h | ||
openfirm.c | ||
openfirm.h | ||
openfirmio.c | ||
openfirmio.h | ||
openpromio.c | ||
openpromio.h |