mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
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:
parent
a5cac2e672
commit
73f3589120
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue