Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2024 22:00:06 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f45213c74cba - main - physmem: Correct a comment
Message-ID:  <202406202200.45KM06je076704@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=f45213c74cbac7f41ab3c94440cb37a2fd92a449

commit f45213c74cbac7f41ab3c94440cb37a2fd92a449
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-20 20:43:39 +0000
Commit:     Mark Johnston <markj@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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406202200.45KM06je076704>