Page MenuHomeFreeBSD

newbus: Simplify reallocation of devices array
ClosedPublic

Authored by imp on Oct 31 2024, 8:20 PM.
Tags
None
Referenced Files
F152914744: D47362.id.diff
Sat, Apr 18, 12:26 AM
Unknown Object (File)
Thu, Apr 16, 10:22 PM
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
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