Make some functions static.

This commit is contained in:
mycroft 1994-01-08 04:59:08 +00:00
parent 287956ae88
commit 9c9af600ee
2 changed files with 13 additions and 12 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_object.c 7.4 (Berkeley) 5/7/91
* $Id: vm_object.c,v 1.14 1994/01/08 04:38:16 mycroft Exp $
* $Id: vm_object.c,v 1.15 1994/01/08 04:59:08 mycroft Exp $
*
*
* Copyright (c) 1987, 1990 Carnegie-Mellon University.
@ -75,9 +75,12 @@
#include <vm/vm_page.h>
static void _vm_object_allocate __P((vm_size_t, vm_object_t));
static void vm_object_terminate __P((vm_object_t));
static void vm_object_deactivate_pages __P((vm_object_t));
static void vm_object_cache_trim __P((void));
static void vm_object_shutdown __P((void));
static void vm_object_remove __P((vm_pager_t));
static void vm_object_cache_clear __P((void));
/*
* Virtual memory objects maintain the actual data
@ -337,7 +340,7 @@ vm_object_deallocate(object)
*
* The object must be locked.
*/
void
static void
vm_object_terminate(object)
register vm_object_t object;
{
@ -558,7 +561,7 @@ vm_object_cache_trim()
* a duplicate deallocation. This routine is probably full of
* race conditions!
*/
void
static void
vm_object_shutdown()
{
register vm_object_t object;
@ -1050,7 +1053,7 @@ vm_object_remove(pager)
* vm_object_cache_clear removes all objects from the cache.
*
*/
void
static void
vm_object_cache_clear()
{
register vm_object_t object;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_object.h 7.3 (Berkeley) 4/21/91
* $Id: vm_object.h,v 1.7 1994/01/08 04:38:19 mycroft Exp $
* $Id: vm_object.h,v 1.8 1994/01/08 04:59:11 mycroft Exp $
*
*
* Copyright (c) 1987, 1990 Carnegie-Mellon University.
@ -125,10 +125,6 @@ simple_lock_data_t vm_object_list_lock;
vm_object_t kernel_object; /* the single kernel object */
vm_object_t kmem_object;
#define vm_object_cache_lock() simple_lock(&vm_cache_lock)
#define vm_object_cache_unlock() simple_unlock(&vm_cache_lock)
#endif /* KERNEL */
/*
* Declare procedures that operate on VM objects.
*/
@ -136,10 +132,8 @@ void vm_object_init __P((void));
vm_object_t vm_object_allocate __P((vm_size_t));
void vm_object_reference __P((vm_object_t));
void vm_object_deallocate __P((vm_object_t));
void vm_object_terminate __P((vm_object_t));
void vm_object_page_clean
__P((vm_object_t, vm_offset_t, vm_offset_t));
void vm_object_shutdown __P((void));
void vm_object_pmap_copy
__P((vm_object_t, vm_offset_t, vm_offset_t));
void vm_object_pmap_remove
@ -153,7 +147,6 @@ void vm_object_setpager
__P((vm_object_t, vm_pager_t, vm_offset_t, boolean_t));
vm_object_t vm_object_lookup __P((vm_pager_t));
void vm_object_enter __P((vm_object_t, vm_pager_t));
void vm_object_cache_clear __P((void));
void vm_object_collapse __P((vm_object_t));
void vm_object_page_remove
__P((vm_object_t, vm_offset_t, vm_offset_t));
@ -166,6 +159,9 @@ void _vm_object_print __P((vm_object_t, boolean_t, int (*)()));
/*
* Functions implemented as macros
*/
#define vm_object_cache_lock() simple_lock(&vm_cache_lock)
#define vm_object_cache_unlock() simple_unlock(&vm_cache_lock)
#define vm_object_cache(pager) pager_cache(vm_object_lookup(pager),TRUE)
#define vm_object_uncache(pager) pager_cache(vm_object_lookup(pager),FALSE)
@ -180,4 +176,6 @@ void _vm_object_print __P((vm_object_t, boolean_t, int (*)()));
#define vm_object_sleep(event, object) \
thread_sleep((event), &(object)->Lock)
#endif /* KERNEL */
#endif /* !_VM_VM_OBJECT_H_ */