summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-05 22:03:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-09 00:27:58 +0900
commit94c96554e093f4b6cc947125f60e8da39031f08c (patch)
tree08d25c95d8899724bfaf0723c131e51d3f3f59af
parentb848914aac388e82948aa2b277c5a1edf3de158d (diff)
Cleanup of the prototypes
* device/cirbuf.h (nqdb): Remove prototype without definition. * device/conf.h (dev_set_indirect): Likewise. * kern/boot_script.h (boot_script_read_file): Likewise. * kern/eventcount.h (evc_notify_abort): Remove duplicate prototype. * kern/thread.h (thread_set_own_priority): Likewise. * kern/thread_swap.h (thread_swapout): Remove prototype without definition. * kern/timer.h (softclock): Remove duplicate prototype. * vm/pmap.h (pmap_resident_count, pmap_access, pmap_phys_address, pmap_phys_to_frame): Remove prototypes without function definition. * vm/vm_page.h (vm_set_page_size): Likewise.
-rw-r--r--device/cirbuf.h1
-rw-r--r--device/conf.h5
-rw-r--r--kern/boot_script.h4
-rw-r--r--kern/eventcount.h2
-rw-r--r--kern/thread.h2
-rw-r--r--kern/thread_swap.h1
-rw-r--r--kern/timer.h2
-rw-r--r--vm/pmap.h22
-rw-r--r--vm/vm_page.h2
9 files changed, 0 insertions, 41 deletions
diff --git a/device/cirbuf.h b/device/cirbuf.h
index a3f50ce..5e4360b 100644
--- a/device/cirbuf.h
+++ b/device/cirbuf.h
@@ -52,7 +52,6 @@ extern int putc(int, struct cirbuf *);
extern int getc(struct cirbuf *);
extern int q_to_b(struct cirbuf *, char *, int);
extern int b_to_q(char *, int, struct cirbuf *);
-extern int nqdb(struct cirbuf *, int);
extern void ndflush(struct cirbuf *, int);
extern void cb_clear(struct cirbuf *);
diff --git a/device/conf.h b/device/conf.h
index e91e099..8aacc86 100644
--- a/device/conf.h
+++ b/device/conf.h
@@ -105,10 +105,5 @@ extern int dev_indirect_count;
di < &dev_indirect_list[dev_indirect_count]; \
di++)
-/*
- * Exported routine to set indirection.
- */
-extern void dev_set_indirect(char *, dev_ops_t, int);
-
#endif /* _DEVICE_CONF_H_ */
diff --git a/kern/boot_script.h b/kern/boot_script.h
index c5ad673..c007d77 100644
--- a/kern/boot_script.h
+++ b/kern/boot_script.h
@@ -69,10 +69,6 @@ int boot_script_exec_cmd (void *hook,
task_t task, char *path, int argc,
char **argv, char *strings, int stringlen);
-/* The user must define this function. Load the contents of FILE
- into a fresh anonymous memory object and return the memory object port. */
-mach_port_t boot_script_read_file (const char *file);
-
/* The user must define this functions to perform the corresponding
Mach task manipulations. */
int boot_script_task_create (struct cmd *); /* task_create + task_suspend */
diff --git a/kern/eventcount.h b/kern/eventcount.h
index f3ba047..7cc8220 100644
--- a/kern/eventcount.h
+++ b/kern/eventcount.h
@@ -55,8 +55,6 @@ extern void evc_init(evc_t ev),
extern kern_return_t evc_wait(natural_t ev_id);
extern kern_return_t evc_wait_clear(natural_t ev_id);
-extern void evc_notify_abort (thread_t thread);
-
#if NCPUS <= 1
void simpler_thread_setrun(
thread_t th,
diff --git a/kern/thread.h b/kern/thread.h
index 559e90b..9946bde 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -345,8 +345,6 @@ extern kern_return_t thread_halt(
boolean_t must_halt);
extern void thread_halt_self(void);
extern void thread_force_terminate(thread_t);
-extern void thread_set_own_priority(
- int priority);
extern thread_t kernel_thread(
task_t task,
void (*start)(void),
diff --git a/kern/thread_swap.h b/kern/thread_swap.h
index 3113030..7f611ec 100644
--- a/kern/thread_swap.h
+++ b/kern/thread_swap.h
@@ -39,6 +39,5 @@ extern void swapper_init(void);
extern void thread_swapin(thread_t thread);
extern void thread_doswapin(thread_t thread);
extern void swapin_thread(void);
-extern void thread_swapout(thread_t thread);
#endif /* _KERN_THREAD_SWAP_H_ */
diff --git a/kern/timer.h b/kern/timer.h
index 76a4117..57f017a 100644
--- a/kern/timer.h
+++ b/kern/timer.h
@@ -182,8 +182,6 @@ MACRO_END
extern void init_timers(void);
-void softclock(void);
-
void timer_init(timer_t this_timer);
#endif /* _KERN_TIMER_H_ */
diff --git a/vm/pmap.h b/vm/pmap.h
index 59fd03a..95ba6da 100644
--- a/vm/pmap.h
+++ b/vm/pmap.h
@@ -163,38 +163,16 @@ void pmap_clear_modify(vm_offset_t pa);
/* Return modify bit */
boolean_t pmap_is_modified(vm_offset_t pa);
-
-/*
- * Statistics routines
- */
-
-#ifndef pmap_resident_count
-extern int pmap_resident_count();
-#endif /* pmap_resident_count */
-
/*
* Sundry required routines
*/
/* Return a virtual-to-physical mapping, if possible. */
extern vm_offset_t pmap_extract(pmap_t, vm_offset_t);
-/* Is virtual address valid? */
-extern boolean_t pmap_access();
/* Perform garbage collection, if any. */
extern void pmap_collect(pmap_t);
/* Specify pageability. */
extern void pmap_change_wiring(pmap_t, vm_offset_t, boolean_t);
-#ifndef pmap_phys_address
-/* Transform address returned by device driver mapping function to physical
- * address known to this module. */
-extern vm_offset_t pmap_phys_address();
-#endif /* pmap_phys_address */
-#ifndef pmap_phys_to_frame
-/* Inverse of pmap_phys_address, for use by device driver mapping function in
- * machine-independent pseudo-devices. */
-extern int pmap_phys_to_frame();
-#endif /* pmap_phys_to_frame */
-
/*
* Optional routines
*/
diff --git a/vm/vm_page.h b/vm/vm_page.h
index f5681d7..4445cb0 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -242,8 +242,6 @@ extern void vm_page_copy(vm_page_t src_m, vm_page_t dest_m);
extern void vm_page_wire(vm_page_t);
extern void vm_page_unwire(vm_page_t);
-extern void vm_set_page_size(void);
-
#if MACH_VM_DEBUG
extern unsigned int vm_page_info(
hash_info_bucket_t *info,