Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106940224
D38240.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D38240.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -41,6 +41,7 @@
#include <linux/list.h>
#include <linux/mmap_lock.h>
#include <linux/shrinker.h>
+#include <linux/page.h>
#include <asm/pgtable.h>
@@ -151,6 +152,13 @@
uint32_t mem_unit; /* Memory unit size in bytes */
};
+static inline struct page *
+virt_to_head_page(const void *p)
+{
+
+ return (virt_to_page(p));
+}
+
/*
* Compute log2 of the power of two rounded up count of pages
* needed for size bytes.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 7:11 PM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725757
Default Alt Text
D38240.diff (644 B)
Attached To
Mode
D38240: LinuxKPI: mm.h: implement virt_to_head_page()
Attached
Detach File
Event Timeline
Log In to Comment