Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758879AbYAOWQg (ORCPT ); Tue, 15 Jan 2008 17:16:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758644AbYAOWQ1 (ORCPT ); Tue, 15 Jan 2008 17:16:27 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:32852 "EHLO amd.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753334AbYAOWQ0 (ORCPT ); Tue, 15 Jan 2008 17:16:26 -0500 Date: Tue, 15 Jan 2008 23:16:27 +0100 From: Pavel Machek To: KOSAKI Motohiro Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Marcelo Tosatti , Daniel Spang , Rik van Riel , Andrew Morton Subject: Re: [RFC][PATCH 3/5] add /dev/mem_notify device Message-ID: <20080115221627.GC1565@elf.ucw.cz> References: <20080115092828.116F.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20080115100029.1178.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080115100029.1178.KOSAKI.MOTOHIRO@jp.fujitsu.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 35 Hi! > the core of this patch series. > add /dev/mem_notify device for notification low memory to user process. > > > > fd = open("/dev/mem_notify", O_RDONLY); > if (fd < 0) { > exit(1); > } > pollfds.fd = fd; > pollfds.events = POLLIN; > pollfds.revents = 0; > err = poll(&pollfds, 1, -1); // wake up at low memory > > ... > Nice, this is really needed for openmoko, zaurus, etc.... But this changelog needs to go into Documentation/... ...and /dev/mem_notify is really a bad name. /dev/memory_low? /dev/oom? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/