vm_radix.h (245254) | vm_radix.h (246423) |
---|---|
1/* 2 * Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org> 3 * Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#ifndef _VM_RADIX_H_ 30#define _VM_RADIX_H_ 31 | 1/* 2 * Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org> 3 * Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#ifndef _VM_RADIX_H_ 30#define _VM_RADIX_H_ 31 |
32/* 33 * Radix tree root. The height and pointer are set together to permit 34 * coherent lookups while the root is modified. 35 */ 36struct vm_radix { 37 uintptr_t rt_root; /* root + height */ 38}; | 32#include <vm/_vm_radix.h> |
39 40#ifdef _KERNEL 41 42void vm_radix_init(void); 43int vm_radix_insert(struct vm_radix *, vm_pindex_t, void *); 44void *vm_radix_lookup(struct vm_radix *, vm_pindex_t); 45void *vm_radix_lookup_ge(struct vm_radix *, vm_pindex_t); 46void *vm_radix_lookup_le(struct vm_radix *, vm_pindex_t); 47void vm_radix_reclaim_allnodes(struct vm_radix *); 48void vm_radix_remove(struct vm_radix *, vm_pindex_t); 49 50#endif /* _KERNEL */ 51#endif /* !_VM_RADIX_H_ */ | 33 34#ifdef _KERNEL 35 36void vm_radix_init(void); 37int vm_radix_insert(struct vm_radix *, vm_pindex_t, void *); 38void *vm_radix_lookup(struct vm_radix *, vm_pindex_t); 39void *vm_radix_lookup_ge(struct vm_radix *, vm_pindex_t); 40void *vm_radix_lookup_le(struct vm_radix *, vm_pindex_t); 41void vm_radix_reclaim_allnodes(struct vm_radix *); 42void vm_radix_remove(struct vm_radix *, vm_pindex_t); 43 44#endif /* _KERNEL */ 45#endif /* !_VM_RADIX_H_ */ |