opnsense-src/sys/compat
Bjoern A. Zeeb ff119f7c4a LinuxKPI: implement devres() framework parts and two examples
This code implements a version of the devres framework found
working for various iwlwifi use cases and also providing functions
for ttm_page_alloc_dma.c from DRM.

Part of the framework replicates the consumed KPI, while others
are internal helper functions.

In addition the simple devm_k*malloc() consumers were implemented
and kvasprintf() was enhanced to also work for the devm_kasprintf()
case.
Addmittingly lkpi_devm_kmalloc_release() could be avoided but for
the overall understanding of the code and possible memory tracing
it may still be helpful.

Further devsres consumer are implemented for iwlwifi but will follow
later as the main reason for this change is to sort out overlap with
DRM.

Sponsored-by:	The FreeBSD Foundation
Obtained-from:	bz_iwlwifi
MFC After:	3 days
Reviewed-by:	hselasky, manu
Differential Revision:	https://reviews.freebsd.org/D28189

(cherry picked from commit fa765ca73e)
2021-02-02 11:51:26 +00:00
..
cloudabi
cloudabi32
cloudabi64
freebsd32 Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
ia32
lindebugfs
linprocfs Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
linsysfs
linux linux: remove spurious newline. 2021-01-19 09:56:45 +00:00
linuxkpi/common LinuxKPI: implement devres() framework parts and two examples 2021-02-02 11:51:26 +00:00
ndis
x86bios