dumb KSE question

Terry Lambert tlambert2 at mindspring.com
Tue Jul 15 00:19:11 PDT 2003


Petri Helenius wrote:
> >The proper thing to do is perform a blocking operation on the device
> >itself, and unblock it when the condition is true in order to signal
> >the user space process.
> 
> Which of the available operations would you recommend for this purpose
> if no data is transferred between kernel and user when the go ahead
> is signaled?

An ioctl() that sets a flag that it wants a wakeup, and then calls
tsleep().  Signal by calling wakeup() on the sleep address.

-- Terry


More information about the freebsd-threads mailing list