That makes it more useful in one sense because porting old poll programs
is easier this way. On the other hand, it makes the whole API less
useful because the epoll_ctl call is documented to use struct
epoll_event which contains opaque user data to enlist a file descriptor.
This data can now not be passed back to user space because it does not
fit in struct pollfd.
By the way: the epoll API looks great! I especially like the opaque
user specified data thing, however making it a union is not so smart
because strace can't meaningfully display it. Also, I would move the
"int fd" out of the union because it is universally useful to know the
file descriptor without having to save it in the opaque data.
Felix
PS: I noticed that the epoll syscall numbers are not #defined on several
platforms, for example sparc and mips.
-
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/