Deleted Added
full compact
kthread.9 (202933) kthread.9 (233648)
1.\" Copyright (c) 2000-2001
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
1.\" Copyright (c) 2000-2001
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man9/kthread.9 202933 2010-01-24 15:07:00Z attilio $
26.\" $FreeBSD: head/share/man/man9/kthread.9 233648 2012-03-29 05:02:12Z eadler $
27.\"
28.Dd January 24, 2010
29.Dt KTHREAD 9
30.Os
31.Sh NAME
32.Nm kthread_start ,
33.Nm kthread_shutdown ,
34.Nm kthread_add ,

--- 42 unchanged lines hidden (view full) ---

77This new family of
78.Fn kthread_* 9
79functions was added to produce
80.Em real
81kernel threads.
82See the
83.Xr kproc 9
84man page for more information on the renamed calls.
27.\"
28.Dd January 24, 2010
29.Dt KTHREAD 9
30.Os
31.Sh NAME
32.Nm kthread_start ,
33.Nm kthread_shutdown ,
34.Nm kthread_add ,

--- 42 unchanged lines hidden (view full) ---

77This new family of
78.Fn kthread_* 9
79functions was added to produce
80.Em real
81kernel threads.
82See the
83.Xr kproc 9
84man page for more information on the renamed calls.
85Also note that the
85Also note that the
86.Fn kproc_kthread_add 9
87function appears in both pages as its functionality is split.
88.Pp
89The function
90.Fn kthread_start
91is used to start
92.Dq internal
93daemons such as

--- 85 unchanged lines hidden (view full) ---

179argument list that is used to build the name of the new thread and is stored
180in the
181.Va td_name
182member of the new thread's
183.Vt "struct thread" .
184.Pp
185The
186.Fn kproc_kthread_add
86.Fn kproc_kthread_add 9
87function appears in both pages as its functionality is split.
88.Pp
89The function
90.Fn kthread_start
91is used to start
92.Dq internal
93daemons such as

--- 85 unchanged lines hidden (view full) ---

179argument list that is used to build the name of the new thread and is stored
180in the
181.Va td_name
182member of the new thread's
183.Vt "struct thread" .
184.Pp
185The
186.Fn kproc_kthread_add
187function is much like the
187function is much like the
188.Fn kthread_add
189function above except that if the kproc does not already
188.Fn kthread_add
189function above except that if the kproc does not already
190exist, it is created.
191This function is better documented in the
190exist, it is created.
191This function is better documented in the
192.Xr kproc 9
193manual page.
194.Pp
195The
196.Fn kthread_exit
197function is used to terminate kernel threads.
198It should be called by the main function of the kernel thread rather than
199letting the main function return to its caller.

--- 150 unchanged lines hidden ---
192.Xr kproc 9
193manual page.
194.Pp
195The
196.Fn kthread_exit
197function is used to terminate kernel threads.
198It should be called by the main function of the kernel thread rather than
199letting the main function return to its caller.

--- 150 unchanged lines hidden ---