11960 Add topo module and hdl api for freeing string array
Review Request #2462 — Created Nov. 22, 2019 and submitted
Information | |
---|---|
rejohnst | |
illumos-gate | |
11960 | |
Reviewers | |
general | |
There are a number of one-off implementations of routines for free'ing a string array scattered across libtopo - all of which are basically identical. This is a sign that this should be promoted to a module API. So this CR is to add such an interface and replace all the one-offs with it.
This change adds two new interfaces:
topo_mod_strfreev(topo_mod_t mod, char *strarr, uint_t nelem)
and
topo_hdl_strfreev(topo_hdl_t thp, char *strarr, uint_t nelem)
See the testing notes in the ticket: https://www.illumos.org/issues/11960
Change Summary:
s/int/uint_t/ in topo_hdl_strfreev()