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 (currently listed in devices.h but
we may wonder if in the future we might have "private" header files
in src/ as well?) or the "release" functions.
In addition the simple devm_k*malloc() consumers were implemented
and kvasprintf() was enhanced to work also for the devm_kasprintf()
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
Sponsored-by: The FreeBSD Foundation