summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-05-14 21:47:27 +0200
committerRichard Braun <rbraun@sceen.net>2018-05-14 21:47:27 +0200
commit16cb249e8ca911ebca4c7b57751f9e95581ca0e9 (patch)
tree1a305ff4e46112fad3e7058f8e0c485e0e76723b /kern/thread.h
parenta06a044cb86860b84dc142b7c88eb87f81f6ff29 (diff)
kern/thread: make thread_create slightly more convenient
Don't require the caller to pass a pointer to the newly created thread.
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 4bead755..6e696fc7 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -182,6 +182,9 @@ void thread_ap_setup(void);
* Creation attributes must be passed, but some of them may be NULL, in which
* case the value is inherited from the caller. The name attribute must not be
* NULL.
+ *
+ * If successful, and if the caller passed a non-NULL thread pointer, it is
+ * filled with the address of the newly created thread.
*/
int thread_create(struct thread **threadp, const struct thread_attr *attr,
void (*fn)(void *), void *arg);