diff options
author | bde <bde@FreeBSD.org> | 1995-12-03 12:18:39 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-03 12:18:39 +0000 |
commit | 754df9d25d89ae310e9795f92160d1aee988180b (patch) | |
tree | d33c7cbdca60ea90e91772049bf01fa90ba1c784 /sys/vm/vm_page.c | |
parent | 3688cbda94bdc12ed86575168b6bc94ac8b8b105 (diff) | |
download | FreeBSD-src-754df9d25d89ae310e9795f92160d1aee988180b.zip FreeBSD-src-754df9d25d89ae310e9795f92160d1aee988180b.tar.gz |
Completed function declarations and/or added prototypes.
Staticized some functions.
__purified some functions. Some functions were bogusly declared as
returning `const'. This hasn't done anything since gcc-2.5. For
later versions of gcc, the equivalent is __attribute__((const)) at
the end of function declarations.
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 09f1908..12150e1 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.37 1995/10/23 05:35:46 dyson Exp $ + * $Id: vm_page.c,v 1.38 1995/11/20 12:19:34 phk Exp $ */ /* @@ -78,6 +78,10 @@ #include <vm/vm_map.h> #include <vm/vm_pageout.h> +#ifdef DDB +extern void print_page_info __P((void)); +#endif + /* * Associated with page of user-allocatable memory is a * page structure. @@ -114,7 +118,10 @@ static u_short vm_page_dev_bsize_chunks[] = { 0x1ff, 0x3ff, 0x7ff, 0xfff, 0x1fff, 0x3fff, 0x7fff, 0xffff }; -static void vm_page_unqueue __P((vm_page_t )); +static inline __pure int + vm_page_hash __P((vm_object_t object, vm_offset_t offset)) + __pure2; +static void vm_page_unqueue __P((vm_page_t )); /* * vm_set_page_size: @@ -294,7 +301,6 @@ vm_page_startup(starta, enda, vaddr) vm_page_array = (vm_page_t) vaddr; mapped = vaddr; - /* * Validate these addresses. */ @@ -340,7 +346,7 @@ vm_page_startup(starta, enda, vaddr) * * NOTE: This macro depends on vm_page_bucket_count being a power of 2. */ -inline const int +static inline __pure int vm_page_hash(vm_object_t object, vm_offset_t offset) { return ((unsigned) object + (offset >> PAGE_SHIFT)) & vm_page_hash_mask; |