--- Gnu-Mach/vm/vm_external.h 2020/09/02 04:36:57 1.1 +++ Gnu-Mach/vm/vm_external.h 2020/09/02 04:45:25 1.1.1.3 @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990,1989 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -70,20 +70,21 @@ typedef int vm_external_state_t; * Routines exported by this module. */ -extern void vm_external_module_initialize(); - /* Initialize the module */ - -extern vm_external_t vm_external_create(); /* Create a vm_external_t */ -extern void vm_external_destroy(); /* Destroy one */ - -extern void vm_external_state_set();/* Set state of a page. */ +/* Initialize the module */ +extern void vm_external_module_initialize(void); +/* Create a vm_external_t */ +extern vm_external_t vm_external_create(vm_offset_t); +/* Destroy one */ +extern void vm_external_destroy(vm_external_t); + +/* Set state of a page. */ +extern void vm_external_state_set(vm_external_t, vm_offset_t, + vm_external_state_t); +/* Retrieve the state for a given page, if known. */ #define vm_external_state_get(e,offset) (((e) != VM_EXTERNAL_NULL) ? \ _vm_external_state_get(e, offset) : \ VM_EXTERNAL_STATE_UNKNOWN) - /* Retrieve the state - * for a given page, if known. - */ -extern vm_external_state_t _vm_external_state_get(); - /* HIDDEN routine */ +/* HIDDEN routine */ +extern vm_external_state_t _vm_external_state_get(vm_external_t, vm_offset_t); -#endif _VM_VM_EXTERNAL_H_ +#endif /* _VM_VM_EXTERNAL_H_ */