kthreads etc.

Abdullah Ibn Hamad Al-Marri wearabnet at yahoo.ca
Sat Oct 27 10:59:41 PDT 2007


----- Original Message ----
> From: Julian Elischer <julian at elischer.org>
> To: FreeBSD Current <current at freebsd.org>
> Sent: Saturday, October 27, 2007 7:55:36 PM
> Subject: kthreads etc.
> 
> The current kthreads changes have been completed and seem to be
> working
> 
 ok..
> 
> I will over time change over a number of the current kproc users to
> be
> 
 kthread users,
> but there is no reason that this need be limited to me..
> 
> anyone working in code that uses kprocs can simply switch to
> using
> 
 kthreads by:
> 
> 1/ checking that that module doesn't NEED a process context (e.g.
> like
> 
 AIO does)
> 
> 
> 2/ replace kproc_create(func, arg, proc**, flags, pages, fmt, fmtargs)
>  with
>    kthread_add(func, arg, thread**, proc* flags, pages, fmt, fmtargs)
> 
> 2a/ change the pointer that used to be the proc * to be a thread *.
> 
> 
> The extra proc* arg is a pointer to the process to which the
> thread should be added. In general you will probably just want to
> make
> 
 it NULL
> which will result in it nbeing added to proc0 which is now
> named
> 
 "kernel"
> 
> 3/ replace any other occurances of kproc with kthread.


Thank you :D

--
 
Regards, 
-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
 




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-current mailing list