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
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D45181

(cherry picked from commit 8e4b8e9d807aa379d2a1c3aaac2537ba7d6bf0bf)

Details

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