Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2003 00:17:54 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>
Subject:   Re: dumb KSE question
Message-ID:  <3F13AAA2.EEE7ED2C@mindspring.com>
References:  <Pine.BSF.4.21.0307121222150.87910-100000@InterJet.elischer.org> <003501c348ad$a599fba0$812a40c1@PETEX31> <3F12EE22.A145A9B5@mindspring.com> <03b901c34a39$27c614b0$812a40c1@PETEX31>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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