Page MenuHomeFreeBSD

vm_phys_early_alloc(): Switch order of arguments
Needs ReviewPublic

Authored by olce on Thu, Jan 23, 5:16 PM.
Tags
None
Referenced Files
F109296039: D48634.diff
Mon, Feb 3, 5:03 AM
F109246119: D48634.id149790.diff
Sun, Feb 2, 1:48 PM
F109227825: D48634.id.diff
Sun, Feb 2, 8:07 AM
Unknown Object (File)
Sat, Feb 1, 12:54 AM
Unknown Object (File)
Wed, Jan 29, 12:56 AM
Unknown Object (File)
Tue, Jan 28, 12:20 PM

Details

Reviewers
markj
dougm
alc
Summary

It seems more intuitive to specify the requested size first.
Additionally, this will improve consistency with the next commit
introducing vm_phys_early_alloc_ex().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61933
Build 58817: arc lint + arc unit

Event Timeline

olce requested review of this revision.Thu, Jan 23, 5:16 PM

It seems more intuitive to specify the requested size first.

I don't really see why. The current interface is consistent with other NUMA-aware allocators, e.g., kmem_malloc_domain(), vm_page_alloc_contig_domain(), vm_phys_alloc_pages().