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, Mar 27, 10:05 AM
Unknown Object (File)
Thu, Mar 26, 7:17 PM
Unknown Object (File)
Wed, Mar 25, 5:04 AM
Unknown Object (File)
Fri, Mar 20, 10:41 AM
Unknown Object (File)
Fri, Mar 20, 10:35 AM
Unknown Object (File)
Feb 28 2026, 5:13 AM
Unknown Object (File)
Feb 27 2026, 1:01 AM
Unknown Object (File)
Feb 25 2026, 3:24 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 Not Applicable
Unit
Tests Not Applicable