diff options
author | attilio <attilio@FreeBSD.org> | 2013-01-10 12:30:58 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-01-10 12:30:58 +0000 |
commit | f458bac614ce672bb9a042dcd4c9af2245491f9f (patch) | |
tree | 83ac8c4307a9d33686861b5fadd3668b78681349 /sys/vm/vm_radix.h | |
parent | 26c71bd174a9343275a566e66a429ec8b3eeb58b (diff) | |
download | FreeBSD-src-f458bac614ce672bb9a042dcd4c9af2245491f9f.zip FreeBSD-src-f458bac614ce672bb9a042dcd4c9af2245491f9f.tar.gz |
Remove vm_radix_lookupn() and its usage in the kernel.
Diffstat (limited to 'sys/vm/vm_radix.h')
-rw-r--r-- | sys/vm/vm_radix.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h index 5c6dac3..1a77b3a 100644 --- a/sys/vm/vm_radix.h +++ b/sys/vm/vm_radix.h @@ -42,25 +42,10 @@ struct vm_radix { void vm_radix_init(void); int vm_radix_insert(struct vm_radix *, vm_pindex_t, void *); void *vm_radix_lookup(struct vm_radix *, vm_pindex_t); -int vm_radix_lookupn(struct vm_radix *, vm_pindex_t, vm_pindex_t, void **, - int, vm_pindex_t *, u_int *); +void *vm_radix_lookup_ge(struct vm_radix *, vm_pindex_t); void *vm_radix_lookup_le(struct vm_radix *, vm_pindex_t); void vm_radix_reclaim_allnodes(struct vm_radix *); void vm_radix_remove(struct vm_radix *, vm_pindex_t); -/* - * Look up any entry at a position greater or equal to index. - */ -static inline void * -vm_radix_lookup_ge(struct vm_radix *rtree, vm_pindex_t index) -{ - void *val; - u_int dummy; - - if (vm_radix_lookupn(rtree, index, 0, &val, 1, &index, &dummy)) - return (val); - return (NULL); -} - #endif /* _KERNEL */ #endif /* !_VM_RADIX_H_ */ |