From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 13 Aug 2007 11:31:07 +0200 From: Domen Puncer To: Ming Liu Subject: Re: basic and stupid question on wait_event and wake_up Message-ID: <20070813093107.GG13994@moe.telargo.com> References: <20070813084736.GF13994@moe.telargo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 13/08/07 09:22 +0000, Ming Liu wrote: > Dear Momen, > OK. I see now. So you mean condition is only to judge whether a sleeping > process could be waken up or not when wake_up() is executed in other > processes or interrupt handlers. What really wakes the process up is still > the function of wake_up, right? We just execute wake_up() and then check if > condition is true. If yes, the process will leave its sleeping and wake up; > if not, it keep sleeping. Am I right? Right. Domen