opnsense-src/sys
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
..
amd64 linux(4): Retire linux_kplatform. 2021-06-22 08:36:21 +03:00
arm newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
arm64 arm64: Use page_to_pvh() when the vm_page_t is known 2021-06-21 17:25:06 -05:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam cam: Set the CAM_QOS_VALID when valid 2021-06-20 19:14:13 -06:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-02 17:49:13 -04:00
compat linux(4): Retire linux_kplatform. 2021-06-22 08:36:21 +03:00
conf linux(4): Get rid of Linuxulator kernel build options. 2021-06-22 08:32:39 +03:00
contrib zfs: merge openzfs/zfs@c4c162c1e (master) into main 2021-06-20 09:18:44 +02:00
crypto ossl: Use crypto_cursor_segment(). 2021-05-25 16:59:19 -07:00
ddb fix style nit: space after if 2021-05-05 15:26:09 -06:00
dev newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-06-14 20:47:37 +02:00
fs fusefs: ensure that FUSE ops' headers' unique values are actually unique 2021-06-19 14:45:29 -06:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom gconcat: Implement new online append feature 2021-06-14 11:42:03 -06:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 linux(4): Retire unused declaration. 2021-06-22 08:41:33 +03:00
isa newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kern newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern Use '.arch_extension crc' in the arm64 crc32 code 2021-05-06 07:42:35 +00:00
mips Move mips and arm to 1000Hz by default. 2021-06-16 20:00:14 -06:00
modules sdhci_fdt: Add gpio_if.h to the source 2021-06-21 21:55:03 +02:00
net Retore the vnet before returning an error. 2021-06-21 10:46:20 -04:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-06-05 16:21:49 +00:00
netgraph Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
netinet toe: Read-lock the inp in toe_4tuple_check(). 2021-06-22 16:31:01 -07:00
netinet6 Enter the net epoch before calling ip6_setpktopts 2021-06-04 13:18:11 -04:00
netipsec Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
netpfil ipfw: Update the pfil mbuf pointer in ipfw_check_frame() 2021-06-16 09:46:56 -04:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-05-26 10:45:40 -04:00
nfs Fix panic when using BOOTP to resolve root path. 2021-03-28 14:02:40 -05:00
nfsclient nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
ofed mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
opencrypto crypto: Remove now-unused crypto_cursor_seg{base,len}. 2021-06-16 15:23:16 -07:00
powerpc newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
riscv riscv: Add an hw.ncpu tunable to limit the number of cores 2021-06-15 01:22:13 +01:00
rpc Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
security tcp_input/syncache: acquire only read lock on PCB for SYN,!ACK packets 2021-04-12 08:25:31 -07:00
sys newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests tests: Revise FIB lookups per second benchmarking routines 2021-06-17 08:49:09 +02:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-13 13:59:25 -04:00
ufs ffs: Correct the input size check in sysctl_ffs_fsck() 2021-05-31 18:59:18 -04:00
vm Un-staticise vm_page_init_page() 2021-06-17 16:58:44 +03:00
x86 Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
xdr xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
xen x86/xen: remove PVHv1 code 2021-05-17 11:41:21 +02:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00