Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2007 10:33:01 -0700 (PDT)
From:      Abdullah Ibn Hamad Al-Marri <wearabnet@yahoo.ca>
To:        Julian Elischer <julian@elischer.org>, FreeBSD Current <current@freebsd.org>
Subject:   Re: kthreads etc.
Message-ID:  <753630.38293.qm@web33706.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
----- Original Message ----=0A> From: Julian Elischer <julian@elischer.org>=
=0A> To: FreeBSD Current <current@freebsd.org>=0A> Sent: Saturday, October =
27, 2007 7:55:36 PM=0A> Subject: kthreads etc.=0A> =0A> The current kthread=
s changes have been completed and seem to be=0A> working=0A> =0A ok..=0A> =
=0A> I will over time change over a number of the current kproc users to=0A=
> be=0A> =0A kthread users,=0A> but there is no reason that this need be li=
mited to me..=0A> =0A> anyone working in code that uses kprocs can simply s=
witch to=0A> using=0A> =0A kthreads by:=0A> =0A> 1/ checking that that modu=
le doesn't NEED a process context (e.g.=0A> like=0A> =0A AIO does)=0A> =0A>=
 =0A> 2/ replace kproc_create(func, arg, proc**, flags, pages, fmt, fmtargs=
)=0A>  with=0A>    kthread_add(func, arg, thread**, proc* flags, pages, fmt=
, fmtargs)=0A> =0A> 2a/ change the pointer that used to be the proc * to be=
 a thread *.=0A> =0A> =0A> The extra proc* arg is a pointer to the process =
to which the=0A> thread should be added. In general you will probably just =
want to=0A> make=0A> =0A it NULL=0A> which will result in it nbeing added t=
o proc0 which is now=0A> named=0A> =0A "kernel"=0A> =0A> 3/ replace any oth=
er occurances of kproc with kthread.=0A=0A=0AThank you :D=0A=0A--=0A =0AReg=
ards, =0A-Abdullah Ibn Hamad Al-Marri=0AArab Portal=0Ahttp://www.WeArab.Net=
/=0A =0A=0A=0A=0A=0A__________________________________________________=0ADo=
 You Yahoo!?=0ATired of spam?  Yahoo! Mail has the best spam protection aro=
und =0Ahttp://mail.yahoo.com 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?753630.38293.qm>