[lkml]   [2007]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 14/22] pollfs: pollable futex
On Fri, 4 May 2007, Ulrich Drepper wrote:

> On 5/4/07, Davide Libenzi <> wrote:
> > This is a pretty specific case, that is not very typical to find in the
> > usual common event loop dispatch application design.
> This is where you are very wrong. Yes, it's rare in the Unix world
> because non-trivial programs cannot implement this in most cases with
> the available infrastructure. But it is very common in other places
> and what is more, it makes a lot of sense. It gives you scalability
> with the size of the machines at no cost associated to reorganizing
> the program.

But we have our own *sane* version of WaitForMultipleObjects, and it's
called poll(2).

> > And if you *really* want your truly generic WaitForMultipleObjects
> > implementation, your only way is to base it on files. Files are our almost
> > perfect match to HANDLEs in our world. We have the basic infrastructure
> > already there.
> "basic", but not complete. And I never said that the implementation
> thye have is perfect, far from it. The concept is good and if we now
> can implement it, with all the event sources available, using an
> efficient event delivery mechanism we are far ahead of their design.
> The proposal now on the table doesn't bring us there all the way and
> it has the potential to make future work in the area of event delivery
> harder just because there is more legacy code to be kept happy. This
> is why I propose to not consider these changes and instead go for the
> gold, i.e., the full solution.

So, on one side we have a proposal made by a set of new modular objects
that fits our own infrastructure (internal - kernel, and external - POSIX)
and that are not bound to a specific interface.
On the other side we have a completely new, monolitic interface, whose
objects are strictly bound to it and are not usable if not only inside the
interface itself.
Now, considering that POSIX is the backbone of Linux (and *nix in
general), and considering that we certainly cannot drop existing POSIX
semantics, where the lagacy code will come from?
I really do not understand your point. You're too smart to not appreciate
the beauty and the simmetry of objects that responds to a common interface
(our files, win32 handles), and that fits our existing kernel infrastructure.

- Davide

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-05-05 20:57    [W:0.109 / U:48.280 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site