Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2024 22:27:46 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ddde8df29363 - stable/14 - LinuxKPI: Add kmap_local_page function
Message-ID:  <202408012227.471MRknM027922@gitrepo.freebsd.org>

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

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

commit ddde8df29363d4dfccb39975039d56e93275f061
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:43:43 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-08-01 21:09:40 +0000

    LinuxKPI: Add kmap_local_page function
    
    kmap_local_page maps a page for temporary usage
    
    Sponsored by:   Serenity CyberSecurity, LLC
    MFC after:      1 week
    Reviewed by:    manu
    Differential Revision:  https://reviews.freebsd.org/D45609
    
    (cherry picked from commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2)
---
 sys/compat/linuxkpi/common/include/linux/highmem.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
index f770bef6b3b7..252d16b2ea70 100644
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -93,6 +93,12 @@ kmap_atomic(struct page *page)
 	return (kmap_atomic_prot(page, VM_PROT_ALL));
 }
 
+static inline void *
+kmap_local_page(struct page *page)
+{
+	return (kmap(page));
+}
+
 static inline void *
 kmap_local_page_prot(struct page *page, pgprot_t prot)
 {



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