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)
Sat, Feb 22, 9:16 AM
Unknown Object (File)
Sat, Feb 8, 8:40 PM
Unknown Object (File)
Feb 8 2025, 4:32 AM
Unknown Object (File)
Jan 27 2025, 9:47 PM
Unknown Object (File)
Jan 26 2025, 9:38 PM
Unknown Object (File)
Jan 22 2025, 7:58 PM
Unknown Object (File)
Jan 21 2025, 1:31 AM
Unknown Object (File)
Jan 18 2025, 10:21 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60298
Build 57182: arc lint + arc unit