From owner-freebsd-threads@FreeBSD.ORG Tue Jul 15 00:19:11 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCDDE37B408 for ; Tue, 15 Jul 2003 00:19:10 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CD5843F93 for ; Tue, 15 Jul 2003 00:19:10 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc12t.dialup.mindspring.com ([209.86.4.93] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19cK5Y-0006Jp-00; Tue, 15 Jul 2003 00:19:05 -0700 Message-ID: <3F13AAA2.EEE7ED2C@mindspring.com> Date: Tue, 15 Jul 2003 00:17:54 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Petri Helenius References: <003501c348ad$a599fba0$812a40c1@PETEX31> <3F12EE22.A145A9B5@mindspring.com> <03b901c34a39$27c614b0$812a40c1@PETEX31> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a479f70078d5a37dd0bd005e149cef8ad2387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c cc: freebsd-threads@freebsd.org cc: Julian Elischer cc: Andrew Gallatin Subject: Re: dumb KSE question X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 07:19:11 -0000 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