linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shaya Potter <spotter@cs.columbia.edu>
To: Jamie Lokier <jamie@shareable.org>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: sys_poll/do_poll/f_op->poll
Date: Thu, 02 Mar 2006 03:47:03 -0500	[thread overview]
Message-ID: <1141289223.1557.2.camel@localhost.localdomain> (raw)
In-Reply-To: <20060302080930.GA20193@mail.shareable.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 :)


      reply	other threads:[~2006-03-02  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02  7:16 sys_poll/do_poll/f_op->poll Shaya Potter
2006-03-02  8:09 ` sys_poll/do_poll/f_op->poll Jamie Lokier
2006-03-02  8:47   ` Shaya Potter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1141289223.1557.2.camel@localhost.localdomain \
    --to=spotter@cs.columbia.edu \
    --cc=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).