From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaya Potter Subject: Re: sys_poll/do_poll/f_op->poll Date: Thu, 02 Mar 2006 03:47:03 -0500 Message-ID: <1141289223.1557.2.camel@localhost.localdomain> References: <1141283803.17264.32.camel@localhost.localdomain> <20060302080930.GA20193@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from cs.columbia.edu ([128.59.16.20]:37886 "EHLO cs.columbia.edu") by vger.kernel.org with ESMTP id S1751961AbWCBIs1 (ORCPT ); Thu, 2 Mar 2006 03:48:27 -0500 To: Jamie Lokier In-Reply-To: <20060302080930.GA20193@mail.shareable.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2006-03-02 at 08:09 +0000, Jamie Lokier wrote: > Shaya Potter wrote: > > am I missing something or do none of the in kernel file system use this > > code (and would therefore sys_poll() not work on them?) > > sys_poll() is _required_ by tradition and standards > to return (at least) POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM > for regular files. > > That's why there are no poll operations for files in any filesystem. and I wasn't thinking right either, poll would generally be used for a place where read/write would block indefintely, which i guess is "never" for a regular file ("never" in quotes as not literally true, but when compared to a socket or a pipe). strange that at 4am I realized what at midnight I didn't :)