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
This commit is contained in:
Vladimir Kondratyev 2024-06-26 23:43:43 +03:00
parent a5cac2e672
commit 73f3589120

View File

@ -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)
{