freebsd-skq/sys/dev/vnic
Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
OF_getprop_alloc takes element size argument and returns number of
elements in the property. There are valid use cases for such behavior
but mostly API consumers pass 1 as element size to get string
properties. What API users would expect from OF_getprop_alloc is to be
a combination of malloc + OF_getprop with the same semantic of return
value. This patch modifies API signature to match these expectations.

For the valid use cases with element size != 1 and to reduce
modification scope new OF_getprop_alloc_multi function has been
introduced that behaves the same way OF_getprop_alloc behaved prior to
this patch.

Reviewed by:	ian, manu
Differential Revision:	https://reviews.freebsd.org/D14850
2018-04-08 22:59:34 +00:00
..
lmac_if.m
mrml_bridge.c
nic_main.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nic_reg.h
nic.h
nicvf_main.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
nicvf_queues.c Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00
nicvf_queues.h
q_struct.h
thunder_bgx_fdt.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
thunder_bgx_var.h
thunder_bgx.c
thunder_bgx.h
thunder_mdio_fdt.c
thunder_mdio_var.h
thunder_mdio.c