Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2024 20:54:39 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 73f3589120e6 - main - LinuxKPI: Add kmap_local_page function
Message-ID:  <202406262054.45QKsdrh092330@gitrepo.freebsd.org>

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

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

commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:43:43 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-06-26 20:43:43 +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
---
 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?202406262054.45QKsdrh092330>