Page MenuHomeFreeBSD

newbus: Simplify reallocation of devices array
ClosedPublic

Authored by imp on Oct 31 2024, 8:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 24, 5:56 AM
Unknown Object (File)
Tue, Apr 21, 7:28 PM
Unknown Object (File)
Sun, Apr 19, 11:32 PM
Unknown Object (File)
Sun, Apr 19, 9:38 PM
Unknown Object (File)
Sun, Apr 19, 7:55 AM
Unknown Object (File)
Sat, Apr 18, 12:26 AM
Unknown Object (File)
Thu, Apr 16, 10:22 PM
Unknown Object (File)
Mar 27 2026, 10:05 AM
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