Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934199AbWKXQcn (ORCPT ); Fri, 24 Nov 2006 11:32:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934989AbWKXQcn (ORCPT ); Fri, 24 Nov 2006 11:32:43 -0500 Received: from relay.2ka.mipt.ru ([194.85.82.65]:60336 "EHLO 2ka.mipt.ru") by vger.kernel.org with ESMTP id S934199AbWKXQcm (ORCPT ); Fri, 24 Nov 2006 11:32:42 -0500 Date: Fri, 24 Nov 2006 19:31:00 +0300 From: Evgeniy Polyakov To: Ulrich Drepper Cc: David Miller , Andrew Morton , netdev , Zach Brown , Christoph Hellwig , Chase Venters , Johann Borck , linux-kernel@vger.kernel.org, Jeff Garzik Subject: Re: [take25 1/6] kevent: Description. Message-ID: <20061124163100.GA21462@2ka.mipt.ru> References: <11641265982190@2ka.mipt.ru> <4564E162.8040901@redhat.com> <20061123115240.GA20294@2ka.mipt.ru> <4565FA60.9000402@redhat.com> <20061124110143.GF13600@2ka.mipt.ru> <456718A3.1070108@redhat.com> <20061124161406.GA5054@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20061124161406.GA5054@2ka.mipt.ru> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.5 (2ka.mipt.ru [0.0.0.0]); Fri, 24 Nov 2006 19:31:01 +0300 (MSK) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 780 Lines: 18 On Fri, Nov 24, 2006 at 07:14:06PM +0300, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote: > If kernel has put data asynchronously it will setup special flag, thus > kevent_wait() will not sleep and will return, so thread will check new > entries and process them. For the clarification - only kevent_wait() updates index, userspace will not detect that it has changed after thread has put there new data. In case kernel thread will updated index too, you are correct, kevent_wait() should get index as parameter. -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/