linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sys_poll/do_poll/f_op->poll
@ 2006-03-02  7:16 Shaya Potter
  2006-03-02  8:09 ` sys_poll/do_poll/f_op->poll Jamie Lokier
  0 siblings, 1 reply; 3+ messages in thread
From: Shaya Potter @ 2006-03-02  7:16 UTC (permalink / raw)
  To: linux-fsdevel

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?)

I figure I'm probably blind to something obvious, just unsure what it
is.

thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sys_poll/do_poll/f_op->poll
  2006-03-02  7:16 sys_poll/do_poll/f_op->poll Shaya Potter
@ 2006-03-02  8:09 ` Jamie Lokier
  2006-03-02  8:47   ` sys_poll/do_poll/f_op->poll Shaya Potter
  0 siblings, 1 reply; 3+ messages in thread
From: Jamie Lokier @ 2006-03-02  8:09 UTC (permalink / raw)
  To: Shaya Potter; +Cc: linux-fsdevel

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.

-- Jamie

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sys_poll/do_poll/f_op->poll
  2006-03-02  8:09 ` sys_poll/do_poll/f_op->poll Jamie Lokier
@ 2006-03-02  8:47   ` Shaya Potter
  0 siblings, 0 replies; 3+ messages in thread
From: Shaya Potter @ 2006-03-02  8:47 UTC (permalink / raw)
  To: Jamie Lokier; +Cc: linux-fsdevel

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 :)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-02  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` sys_poll/do_poll/f_op->poll Shaya Potter

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).