diff options
author | julian <julian@FreeBSD.org> | 2008-04-29 22:43:15 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-04-29 22:43:15 +0000 |
commit | 2ddf06099d896befad963d7c1fce342c7398ffa7 (patch) | |
tree | 2f3e7b3009aceecd164d6b62d362032641e0f4a8 /share/man/man9/kthread.9 | |
parent | 8cd0556b5f8b4223a2805b87d9cc7494d643ef61 (diff) | |
download | FreeBSD-src-2ddf06099d896befad963d7c1fce342c7398ffa7.zip FreeBSD-src-2ddf06099d896befad963d7c1fce342c7398ffa7.tar.gz |
Document the kproc_kthread_add() call
and fix a small detail of its implementation.
MFC after: 1 week
Diffstat (limited to 'share/man/man9/kthread.9')
-rw-r--r-- | share/man/man9/kthread.9 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/share/man/man9/kthread.9 b/share/man/man9/kthread.9 index 5a8c010..148a34e 100644 --- a/share/man/man9/kthread.9 +++ b/share/man/man9/kthread.9 @@ -57,6 +57,12 @@ .Fn kthread_suspend "struct thread *td" "int timo" .Ft void .Fn kthread_suspend_check "struct thread *td" +.Ft int +.Fo kproc_kthread_add +.Fa "void (*func)(void *)" "void *arg" +.Fa "struct proc **procptr" "struct thread **tdptr" +.Fa "int flags" "int pages" "char * procname" "const char *fmt" "..." +.Fc .Sh DESCRIPTION The function .Fn kthread_start @@ -151,6 +157,16 @@ member of the new thread's .Vt "struct thread" . .Pp The +.Fn kproc_kthread_add +function is much like the +.Fn kthread_add +function above except that if the kproc does not already +exist, it is created. +This function is better documented in the +.Xr kproc 9 +manual page. +.Pp +The .Fn kthread_exit function is used to terminate kernel threads. It should be called by the main function of the kernel thread rather than |