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)
Dec 9 2024, 6:19 AM
Unknown Object (File)
Dec 5 2024, 10:56 AM
Unknown Object (File)
Dec 2 2024, 4:51 AM
Unknown Object (File)
Nov 23 2024, 10:08 AM
Unknown Object (File)
Nov 22 2024, 3:26 PM
Unknown Object (File)
Nov 20 2024, 1:25 PM
Unknown Object (File)
Nov 20 2024, 1:25 PM
Unknown Object (File)
Nov 20 2024, 11:43 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