Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 28 Oct 2002 17:52:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 28 Oct 2002 17:52:04 -0500 Received: from outpost.ds9a.nl ([213.244.168.210]:16548 "EHLO outpost.ds9a.nl") by vger.kernel.org with ESMTP id ; Mon, 28 Oct 2002 17:52:01 -0500 Date: Mon, 28 Oct 2002 23:58:21 +0100 From: bert hubert To: Davide Libenzi Cc: Hanna Linder , Linux Kernel Mailing List , linux-aio@kvack.org, lse-tech@lists.sourceforge.net, torvalds@transmeta.com Subject: and nicer too - Re: [PATCH] epoll more scalable than poll Message-ID: <20021028225821.GA29868@outpost.ds9a.nl> Mail-Followup-To: bert hubert , Davide Libenzi , Hanna Linder , Linux Kernel Mailing List , linux-aio@kvack.org, lse-tech@lists.sourceforge.net, torvalds@transmeta.com References: <20021028220809.GB27798@outpost.ds9a.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1822 Lines: 55 On Mon, Oct 28, 2002 at 02:29:37PM -0800, Davide Libenzi wrote: > sys_epoll, by plugging directly in the existing kernel architecture, > supports sockets and pipes. It does not support and there're not even > plans to support other devices like tty, where poll() and select() works > flawlessy. Since the sys_epoll ( and /dev/epoll ) fd support standard polling, you Ok. I suggest the manpage mention this prominently. I tried a somewhat more involved example and it indeed works expected. As an application developer, this suits my needs just fine. I really like the 'edge' nature of it all. The interface is also lovely: for(;;) { nfds = sys_epoll_wait(kdpfd, &pfds, -1); fprintf(stderr,"sys_epoll_wait returned: %d\n",nfds); for(n=0;n