HomeFreeBSD

LinuxKPI: add kvmemdup()

Description

LinuxKPI: add kvmemdup()

Add kvmemdup() as a variant of kmemdup(). While currently it could
just call kmemdup() we duplicate the code and use kvmalloc() in case
someone will change the implementation of kvmalloc/kvfree in slab.h.
This is used by an updated wireless driver.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D45181

Details

Provenance
bzAuthored on May 13 2024, 5:43 PM
Reviewer
emaste
Differential Revision
D45181: LinuxKPI: add kvmemdup()
Parents
rG69b6c4a6ec66: LinuxKPI: 802.11: fix for_each_sta_active_link()
Branches
Unknown
Tags
Unknown