Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149102035
D3390.id7972.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3390.id7972.diff
View Options
Index: share/man/man9/kproc.9
===================================================================
--- share/man/man9/kproc.9
+++ share/man/man9/kproc.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 19, 2007
+.Dd August 15, 2015
.Dt KPROC 9
.Os
.Sh NAME
@@ -183,7 +183,9 @@
.Fn wakeup
is issued on the proc pointer which can be used by callers to know
when the called function is no longer running.
-See the EXAMPLE section for how to use this to ensure that a module
+See the
+.Sx EXAMPLE
+section for how to use this to ensure that a module
is unloaded safely.
.Pp
The
Index: share/man/man9/kthread.9
===================================================================
--- share/man/man9/kthread.9
+++ share/man/man9/kthread.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 15, 2014
+.Dd August 15, 2015
.Dt KTHREAD 9
.Os
.Sh NAME
@@ -195,9 +195,17 @@
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
+It must be called by the main function of the kernel thread rather than
letting the main function return to its caller.
-.\" XXX "int ecode" argument isn't documented.
+A
+.Fn wakeup
+is issued on the thread pointer which can be used by callers to know when
+the called function is no longer running.
+See the EXAMPLE section in
+.Xr kproc 9
+for how to use this to ensure that a module is unloaded safely.
+The example uses struct proc instead of struct thread, but otherwise is
+the same.
.Pp
The
.Fn kthread_resume ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 7:27 AM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30171030
Default Alt Text
D3390.id7972.diff (1 KB)
Attached To
Mode
D3390: improvements to kproc/kthread man pages
Attached
Detach File
Event Timeline
Log In to Comment