Page MenuHomeFreeBSD

newbus: Simplify reallocation of devices array
ClosedPublic

Authored by imp on Oct 31 2024, 8:20 PM.
Tags
None
Referenced Files
F173514919: D47362.id145872.diff
Sat, Sep 26, 12:35 PM
F173461096: D47362.id.diff
Sat, Sep 26, 3:06 AM
Unknown Object (File)
Thu, Sep 24, 12:33 PM
Unknown Object (File)
Tue, Sep 1, 12:17 AM
Unknown Object (File)
Sat, Aug 29, 6:01 PM
Unknown Object (File)
Sat, Aug 29, 5:58 PM
Unknown Object (File)
Aug 17 2026, 1:04 PM
Unknown Object (File)
Aug 8 2026, 11:02 PM
Subscribers

Details

Summary

Simplify the complex expression down to what it is on 64-bit systems.
32-bit kernels would allocate 2 at a time. Replace all that with
reallocf which will eliminate a bunch of copies. This should be faster
and simpler on both types of kernels.

Suggested by: jhb@
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60298
Build 57182: arc lint + arc unit