implement poll and read
authorPierre Habouzit <pierre.habouzit@intersec.com>
Sun, 15 Jan 2012 09:31:44 +0000 (10:31 +0100)
committerPierre Habouzit <pierre.habouzit@intersec.com>
Sun, 15 Jan 2012 09:31:44 +0000 (10:31 +0100)
commit866e56c8f10d718c24e812335b107a05218dc339
treec425bb45697a0656e03f258f167c6a9de286940e
parent3560071ae86bc78a0b4eafff5911a553e7651f64
implement poll and read

No matter if we implement some other kind of dirty notification mechanism,
it feels right to have pwqr pollable for overcommit.

Documentation:
- drop the "in kernel unpark" method, it sucks
- migrate to using non blocking "read" for the probing method.
- document the pollability and how read works in the pwqr_create "manpage".

lib:
- implement epoll_create with flags. It requires a kernel supporting
  O_NONBLOCK/O_CLOEXEC flags to open(), I've been too lazy to implement
  the emulation yet.

Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.com>
Documentation/pwqr.adoc
kernel/pwqr.c
lib/libpwqr.c