Page MenuHomeFreeBSD

LinuxKPI: implement devm_kmemdup_array()
ClosedPublic

Authored by bz on Apr 14 2026, 3:35 PM.
Tags
None
Referenced Files
F175676910: D56396.diff
Mon, Oct 12, 11:09 AM
Unknown Object (File)
Thu, Oct 8, 9:12 AM
Unknown Object (File)
Fri, Oct 2, 12:50 AM
Unknown Object (File)
Thu, Oct 1, 10:43 PM
Unknown Object (File)
Tue, Sep 29, 5:43 PM
Unknown Object (File)
Tue, Sep 29, 2:25 PM
Unknown Object (File)
Sun, Sep 27, 10:53 AM
Unknown Object (File)
Sat, Sep 26, 9:30 PM

Details

Summary

Implement devm_kmemdup_array() using devm_kmemdup() in order to
prepare for Linux v7.0 based drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Apr 14 2026, 3:35 PM

The devm_kmemdup*() functions are defined in <linux/device/devres.h>, included from <linux/device.h> in 7.0. Did you consider adding them to <linux/device/devres.h>?

The devm_kmemdup*() functions are defined in <linux/device/devres.h>, included from <linux/device.h> in 7.0. Did you consider adding them to <linux/device/devres.h>?

No, I haven't checked what Linux does for this.
I think factoring them out, I'd rather do in a dedicated commit not adding new stuff.
I can prepare that as a follow-up.

I understand, thanks. I'm approving this patch then.

This revision is now accepted and ready to land.Apr 15 2026, 9:02 PM
This revision was automatically updated to reflect the committed changes.