From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751713AbXCDRsa (ORCPT ); Sun, 4 Mar 2007 12:48:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751739AbXCDRsa (ORCPT ); Sun, 4 Mar 2007 12:48:30 -0500 Received: from smtpout.mac.com ([17.250.248.176]:60829 "EHLO smtpout.mac.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbXCDRs3 (ORCPT ); Sun, 4 Mar 2007 12:48:29 -0500 In-Reply-To: References: <20070301131118.GA30228@elte.hu> <20070301141637.GA20006@elte.hu> <20070301145454.GB12684@2ka.mipt.ru> <20070302081047.GA27122@2ka.mipt.ru> <20070303100625.GA22557@2ka.mipt.ru> <20070303203140.GA756@2ka.mipt.ru> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <82AD23D8-E5BE-4B69-A602-1B474EC0C4EA@mac.com> Cc: Davide Libenzi , Evgeniy Polyakov , Ingo Molnar , Eric Dumazet , Pavel Machek , Theodore Tso , Linus Torvalds , Ulrich Drepper , Linux Kernel Mailing List , Arjan van de Ven , Christoph Hellwig , Andrew Morton , Alan Cox , Zach Brown , "David S. Miller" , Suparna Bhattacharya , Jens Axboe , Thomas Gleixner Content-Transfer-Encoding: 7bit From: Kyle Moffett Subject: Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3 Date: Sun, 4 Mar 2007 12:46:00 -0500 To: Kirk Kuchov X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mar 04, 2007, at 11:23:37, Kirk Kuchov wrote: > So here we are, 2007. epoll() works with files, pipes, sockets, > inotify and anything pollable (file descriptors) but aio, timers, > signals and user-defined event. Can we please get those working > with epoll ? Something as simple as: > > [code snipped] > > Would this be acceptable? Can we finally move on? Well, even this far into 2.6, Linus' patch from 2003 still (mostly) applies; the maintenance cost for this kind of code is virtually zilch. If it matters that much to you clean it up and make it apply; add an alarmfd() syscall (another 100 lines of code at most?) and make a "read" return an architecture-independent siginfo-like structure and submit it for inclusion. Adding epoll() support for random objects is as simple as a 75-line object-filesystem and a 25- line syscall to return an FD to a new inode. Have fun! Go wild! Something this trivially simple could probably spend a week in -mm and go to linus for 2.6.22. Cheers, Kyle Moffett