Page MenuHomeFreeBSD

newbus: Simplify reallocation of devices array
ClosedPublic

Authored by imp on Oct 31 2024, 8:20 PM.
Tags
None
Referenced Files
F146145594: D47362.id145872.diff
Sat, Feb 28, 5:13 AM
Unknown Object (File)
Fri, Feb 27, 1:01 AM
Unknown Object (File)
Wed, Feb 25, 3:24 AM
Unknown Object (File)
Thu, Feb 19, 2:33 AM
Unknown Object (File)
Nov 26 2025, 11:05 PM
Unknown Object (File)
Nov 20 2025, 1:16 PM
Unknown Object (File)
Nov 20 2025, 1:15 PM
Unknown Object (File)
Nov 20 2025, 1:12 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 Not Applicable
Unit
Tests Not Applicable