Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2021 06:47:50 GMT
From:      Ka Ho Ng <khng@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6f89edcd836e - stable/13 - pmap_extract.9: Fix pmap_extract_and_hold()'s function type
Message-ID:  <202108310647.17V6lot0077676@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by khng:

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

commit 6f89edcd836e613d1be1ec28ec5e0108f45b6a62
Author:     Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2021-08-27 13:42:49 +0000
Commit:     Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2021-08-31 06:47:24 +0000

    pmap_extract.9: Fix pmap_extract_and_hold()'s function type
    
    pmap_extract_and_hold() returns a vm_page_t instead of a physical page
    address.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    alc
    Differential Revision:  https://reviews.freebsd.org/D31691
    
    (cherry picked from commit 6e1df1d14c6dfcc209c1416ec0832e4d08191c72)
---
 share/man/man9/pmap_extract.9 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/man/man9/pmap_extract.9 b/share/man/man9/pmap_extract.9
index d2154ebe8a0b..77f3b47ec51e 100644
--- a/share/man/man9/pmap_extract.9
+++ b/share/man/man9/pmap_extract.9
@@ -38,7 +38,7 @@
 .In vm/pmap.h
 .Ft vm_paddr_t
 .Fn pmap_extract "pmap_t pmap" "vm_offset_t va"
-.Ft vm_paddr_t
+.Ft vm_page_t
 .Fn pmap_extract_and_hold "pmap_t pmap" "vm_offset_t va" "vm_prot_t prot"
 .Sh DESCRIPTION
 The
@@ -73,7 +73,9 @@ will be returned.
 .Pp
 The
 .Fn pmap_extract_and_hold
-function will return the physical page address associated with the
+function will return the
+.Ft vm_page_t
+associated with the
 virtual address
 .Fa va
 inside the physical map



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