Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_radix.h
| Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| static __inline vm_page_t | static __inline vm_page_t | ||||
| vm_radix_iter_step(struct pctrie_iter *pages) | vm_radix_iter_step(struct pctrie_iter *pages) | ||||
| { | { | ||||
| return (VM_RADIX_PCTRIE_ITER_STEP_GE(pages)); | 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 | * 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. | * than the current pindex, or NULL if there is no such page. Return the page. | ||||
| * | * | ||||
| * Requires that access be externally synchronized by a lock. | * Requires that access be externally synchronized by a lock. | ||||
| */ | */ | ||||
| static __inline vm_page_t | static __inline vm_page_t | ||||
| vm_radix_iter_next(struct pctrie_iter *pages) | vm_radix_iter_next(struct pctrie_iter *pages) | ||||
| { | { | ||||
| Show All 38 Lines | |||||