HomeFreeBSD

LinuxKPI: add dmam_pool_create() support

Description

LinuxKPI: add dmam_pool_create() support

dmam_pool_create() is a "managed" version of dma_pool_create() which
will cleanup everything left when the device goes away using the
devres framework. For that add an internal cleanup function to be
called from devres release.
This is used by at least one wireless driver.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30520

(cherry picked from commit 2afeed13b58653578c6ce5154afa6fb59f6b47f0)

Details

Provenance
bzAuthored on May 28 2021, 11:11 AM
Reviewer
hselasky
Differential Revision
D30520: LinuxKPI: add dmam_pool_create() support
Parents
rG05cb0d21ed4b: LinuxKPI: add device_reprobe() and device_release_driver()
Branches
Unknown
Tags
Unknown