freebsd-dev/sys/dev/hyperv
Warner Losh ddfc9c4c59 newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf
Now that the upper layers all go through a layer to tie into these
information functions that translates an sbuf into char * and len. The
current interface suffers issues of what to do in cases of truncation,
etc. Instead, migrate all these functions to using struct sbuf and these
issues go away. The caller is also in charge of any memory allocation
and/or expansion that's needed during this process.

Create a bus_generic_child_{pnpinfo,location} and make it default. It
just returns success. This is for those busses that have no information
for these items. Migrate the now-empty routines to using this as
appropriate.

Document these new interfaces with man pages, and oversight from before.

Reviewed by:		jhb, bcr
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D29937
2021-06-22 20:52:06 -06:00
..
hvsock Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
include HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
input hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled. 2021-04-23 01:13:25 +03:00
netvsc Hyper-V: hn: Initialize the internal field of per packet info on tx path 2021-03-15 10:33:29 +00:00
pcib Hyper-V: pcib: Check revoke status during device attach 2020-10-15 05:57:20 +00:00
storvsc storvsc: fix auto-sense reporting 2021-05-07 10:17:57 +03:00
utilities sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
vmbus newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00