On 04/09/07, Joachim Worringen <[EMAIL PROTECTED]> wrote:
> I'm porting a driver from Linux to (Open)Solaris. The driver uses its own 
> threads, which under Linux are created with a simple kernel_thread() call. I 
> don't see such a call under Solaris. A solution could be to create a task 
> queue with a single thread, and commit a single task to this queue, which 
> then runs until the driver eventually is stopped. Is this feasible, or are 
> there other, "cleaner" solutions?

I'm sure there are many solutions involving taskqs/timeout/cyclics
that could be arrived it. However, you *can* create a thread;
thread_create() will do it for you (I think it's in kthread.c). I
don't believe it's in the DDI, but IMO it should be as it can be
highly useful.

  Paul

-- 
Paul Durrant
http://www.linkedin.com/in/pdurrant
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to