summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-01-02 16:02:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-01-02 20:10:01 +0100
commitb5365a3c2cdaa507c0af3edd30d9d597083606bc (patch)
tree888e4945f2832b67c15eb5289fc0ad7b3365949f
parent2c8514cfafb6daec4e76e3a8e0f1fd07ca0a4a33 (diff)
kern: Fix typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--kern/ipc_kobject.c2
-rw-r--r--kern/ipc_mig.c2
-rw-r--r--kern/mach_clock.c2
-rw-r--r--kern/profile.c2
-rw-r--r--kern/sched_prim.c2
-rw-r--r--kern/strings.c4
-rw-r--r--kern/xpr.h2
7 files changed, 8 insertions, 8 deletions
diff --git a/kern/ipc_kobject.c b/kern/ipc_kobject.c
index bf22028e..709ec9ec 100644
--- a/kern/ipc_kobject.c
+++ b/kern/ipc_kobject.c
@@ -244,7 +244,7 @@ ipc_kobject_server(request)
} else {
/*
* The message contents of the request are intact.
- * Destroy everthing except the reply port right,
+ * Destroy everything except the reply port right,
* which is needed in the reply message.
*/
diff --git a/kern/ipc_mig.c b/kern/ipc_mig.c
index 41ebc94e..cc61ec76 100644
--- a/kern/ipc_mig.c
+++ b/kern/ipc_mig.c
@@ -612,7 +612,7 @@ kern_return_t thread_set_state_KERNEL(
* knows to fall back on an RPC. For other return values, it won't
* retry with an RPC. The retry might get a different (incorrect) rc.
* Return values are only set (and should only be set, with copyout)
- * on successfull calls.
+ * on successful calls.
*/
kern_return_t
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 0a7458b0..b627b89d 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -234,7 +234,7 @@ void clock_interrupt(
update_mapped_time(&time);
/*
- * Schedule soft-interupt for timeout if needed
+ * Schedule soft-interrupt for timeout if needed
*/
if (needsoft) {
if (basepri) {
diff --git a/kern/profile.c b/kern/profile.c
index e14d4116..55107218 100644
--- a/kern/profile.c
+++ b/kern/profile.c
@@ -194,7 +194,7 @@ thread_t th;
* Make a request to the profile_thread by inserting
* the buffer in the send queue, and wake it up.
* The last buffer must be inserted at the head of the
- * send queue, so the profile_thread handles it immediatly.
+ * send queue, so the profile_thread handles it immediately.
*/
if (kmem_alloc( kernel_map, &vm_buf_entry,
sizeof(struct buf_to_send)) != KERN_SUCCESS)
diff --git a/kern/sched_prim.c b/kern/sched_prim.c
index 89fb1dc8..376217a8 100644
--- a/kern/sched_prim.c
+++ b/kern/sched_prim.c
@@ -155,7 +155,7 @@ void sched_init(void)
min_quantum = hz / 10; /* context switch 10 times/second */
wait_queue_init();
- pset_sys_bootstrap(); /* initialize processer mgmt. */
+ pset_sys_bootstrap(); /* initialize processor mgmt. */
queue_init(&action_queue);
simple_lock_init(&action_lock);
sched_tick = 0;
diff --git a/kern/strings.c b/kern/strings.c
index c77ae4fe..e299534a 100644
--- a/kern/strings.c
+++ b/kern/strings.c
@@ -50,7 +50,7 @@
* the contents are identical up to the length of s2.
* It returns < 0 if the first differing character is smaller
* in s1 than in s2 or if s1 is shorter than s2 and the
- * contents are identical upto the length of s1.
+ * contents are identical up to the length of s1.
*/
int __attribute__ ((pure))
@@ -157,7 +157,7 @@ strncpy(
/*
* Abstract:
- * strlen returns the number of characters in "string" preceeding
+ * strlen returns the number of characters in "string" preceding
* the terminating null character.
*/
diff --git a/kern/xpr.h b/kern/xpr.h
index 4a06216a..72f68170 100644
--- a/kern/xpr.h
+++ b/kern/xpr.h
@@ -34,7 +34,7 @@
* which will expand into the following code:
* if (xprflags & XPR_SYSCALLS)
* xpr("syscall: %d, 0x%x\n", syscallno, arg1);
- * Xpr will log the pointer to the printf string and up to 6 arguements,
+ * Xpr will log the pointer to the printf string and up to 6 arguments,
* along with a timestamp and cpuinfo (for multi-processor systems), into
* a circular buffer. The actual printf processing is delayed until after
* the buffer has been collected. It is assumed that the text/data segments