Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153491959
D47046.id146210.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
766 B
Referenced Files
None
Subscribers
None
D47046.id146210.diff
View Options
diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h
--- a/sys/vm/vm_radix.h
+++ b/sys/vm/vm_radix.h
@@ -257,6 +257,19 @@
return (VM_RADIX_PCTRIE_ITER_STEP_GE(pages));
}
+/*
+ * Initialize an iterator pointing to the page with the greatest pindex that is
+ * less than or equal to the specified pindex, or NULL if there are no such
+ * pages. Return the page.
+ *
+ * Requires that access be externally synchronized by a lock.
+ */
+static __inline vm_page_t
+vm_radix_iter_lookup_le(struct pctrie_iter *pages, vm_pindex_t index)
+{
+ return (VM_RADIX_PCTRIE_ITER_LOOKUP_LE(pages, index));
+}
+
/*
* Update the iterator to point to the page with the pindex that is one greater
* than the current pindex, or NULL if there is no such page. Return the page.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 11:13 AM (19 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31972863
Default Alt Text
D47046.id146210.diff (766 B)
Attached To
Mode
D47046: vm_radix: Add iter lookup_le interface
Attached
Detach File
Event Timeline
Log In to Comment