[PATCH v3 01/24] mm: enhance region_is_ram() to region_intersects()

From
Luis R. Rodriguez <hidden>
Date
2015-07-30 20:42:55
Also in
linux-arch, lkml, nvdimm
Reply to
Dan Williams, 2015-07-30
On Thu, Jul 30, 2015 at 12:53:45PM -0400, Dan Williams wrote:
quoted hunk ↗ jump to hunk
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 2e872f92dbac..84b05ebedb2d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -369,7 +369,14 @@ static inline int put_page_unless_one(struct page *page)
 }
 
 extern int page_is_ram(unsigned long pfn);
-extern int region_is_ram(resource_size_t phys_addr, unsigned long size);
+
+enum {
+	REGION_INTERSECTS,
+	REGION_DISJOINT,
+	REGION_MIXED,
+};
+
Can you Kdoc'ify this? Part of the reason for the enum request was this
could be then documented really well. The helper is documented but here
you can go into more detail about each region intersection.

  Luis
Thread (38 messages) 38 messages, 5 authors, last reply 2015-08-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help