The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f45213c74cbac7f41ab3c94440cb37a2fd92a449
commit f45213c74cbac7f41ab3c94440cb37a2fd92a449 Author: Mark Johnston <ma...@freebsd.org> AuthorDate: 2024-06-20 20:43:39 +0000 Commit: Mark Johnston <ma...@freebsd.org> CommitDate: 2024-06-20 21:45:40 +0000 physmem: Correct a comment MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. --- sys/kern/subr_physmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index a45c36aef2d7..059566f0eccb 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -177,7 +177,8 @@ physmem_print_tables(void) * * Updates the value at *pavail with the sum of all pages in all hw regions. * - * Returns the number of pages of non-excluded memory added to the avail list. + * Returns the number of entries in the avail list, which is twice the number + * of returned regions. */ static size_t regions_to_avail(vm_paddr_t *avail, uint32_t exflags, size_t maxavail,