summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_radix.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-06 18:37:46 +0000
committerattilio <attilio@FreeBSD.org>2013-02-06 18:37:46 +0000
commit4c22b4bafedb243f08974d26fc6f02c35380922e (patch)
tree5a0cc7aa4642a72e340955d5eb066b0c0c99b047 /sys/vm/vm_radix.h
parent3bbca3bce272e23bed717e9c3105599610be21c2 (diff)
downloadFreeBSD-src-4c22b4bafedb243f08974d26fc6f02c35380922e.zip
FreeBSD-src-4c22b4bafedb243f08974d26fc6f02c35380922e.tar.gz
Cleanup vm_radix KPI:
- Avoid the return value for vm_radix_insert() - Name the functions argument per-style(9) - Avoid to get and return opaque objects but use vm_page_t as vm_radix is thought to not really be general code but to cater specifically page cache and resident cache.
Diffstat (limited to 'sys/vm/vm_radix.h')
-rw-r--r--sys/vm/vm_radix.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h
index 3cd92a0..7c6f407 100644
--- a/sys/vm/vm_radix.h
+++ b/sys/vm/vm_radix.h
@@ -33,13 +33,14 @@
#ifdef _KERNEL
-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);
-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);
+void vm_radix_init(void);
+void vm_radix_insert(struct vm_radix *rtree, vm_pindex_t index,
+ vm_page_t page);
+vm_page_t vm_radix_lookup(struct vm_radix *rtree, vm_pindex_t index);
+vm_page_t vm_radix_lookup_ge(struct vm_radix *rtree, vm_pindex_t index);
+vm_page_t vm_radix_lookup_le(struct vm_radix *rtree, vm_pindex_t index);
+void vm_radix_reclaim_allnodes(struct vm_radix *rtree);
+void vm_radix_remove(struct vm_radix *rtree, vm_pindex_t index);
#endif /* _KERNEL */
#endif /* !_VM_RADIX_H_ */
OpenPOWER on IntegriCloud