Subject: Re: "fast" syscalls?
To: Jason Thorpe <thorpej@shagadelic.org>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 03/17/2006 13:02:53
Jason Thorpe wrote:
>
> On Mar 17, 2006, at 12:19 PM, Garrett D'Amore wrote:
>
>> Yesterday there was discussion of using a blocking lwp to do it.  I may
>> investigate that.
>
> For the consumer?  Then it would have to wake up and poll
> periodically, yes?
>
> -- thorpej

No.  Application starts thread, which issues ioctl that never returns. 
The ioctl code causes the thread to call tsleep when no data in the queue.

Then I can "kick" that thread after adding stuff to the queue by calling
_lwp_wakeup().

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191