Re: [PATCH] sysfs poll should keep the poll rule of normal regular file.

From: Neil Brown
Date: Thu Apr 09 2009 - 02:06:01 EST


On Thursday April 9, kosaki.motohiro@xxxxxxxxxxxxxx wrote:
> > On Wednesday April 8, kosaki.motohiro@xxxxxxxxxxxxxx wrote:
> > > Because Ruby (the scripting language) VM assume select system-call against regular file don't block.
> > > (POSIX gurantee it.)
> > > But sysfs_poll() don't keep this rule although sysfs file can read and write always.
> >
> > It would be nice to include a reference to where POSIX (or SUS)
> > guarantees it - though I suspect you are right.
>
> Oh, very good opinion.
>
> following explanation is better?
>
> poll is requireed "Regular files shall always poll TRUE for reading and
> writing." by SUSv3.
> see http://www.opengroup.org/onlinepubs/009695399/functions/poll.html
>

Yes, that's excellent, thanks.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/