Re: [PATCH] Futex Generalization Patch

Rusty Russell (rusty@rustcorp.com.au)
Thu, 11 Apr 2002 23:55:05 +1000


In message <20020410211348.AB5E93FE06@smtp.linux.ibm.com> you write:
> --) There is more overhead in the wakeup and the wait because I need to
> move from the fd to the filestruct which is always some lookup and
> I have to verify that the file descriptor is actually a valid /dev/futex
> file (yikes).

Hmmm... verify on the FUTEX_AWAIT: you can maybe hold the struct file
directly (or maybe not).

> In FUTEX_AWAIT inteprest it as { short fd, short sig };
> There should be no limitation by casting it to shorts ?

No, that's bad. But I thought there was already a way to set what
signal occurred instead of SIGIO. Is that not per-fd?

Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/