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)
Sun, Jul 26, 1:14 PM
Unknown Object (File)
Tue, Jul 21, 1:22 PM
Unknown Object (File)
Tue, Jul 14, 2:36 AM
Unknown Object (File)
Jul 4 2026, 1:51 AM
Unknown Object (File)
May 16 2026, 12:21 AM
Unknown Object (File)
May 14 2026, 6:50 PM
Unknown Object (File)
May 14 2026, 6:50 PM
Unknown Object (File)
May 14 2026, 6:50 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