Re: select() efficiency / epoll

From: Davy Durham
Date: Tue Aug 23 2005 - 20:40:37 EST


Jari Sundell wrote:

On 8/23/05, Davy Durham <pubaddr2@xxxxxxxxxxxxxxx> wrote:



I was hoping you would mention in your reply that you knew
epoll_data_t was an union and you didn't touch epoll_data::fd, so i
wouldn't have to say it explicitly. ;)



Oh!.. unless the epoll_data_t is a union just for convenience in that it already has an 'int fd' if you want to use that, but don't have to.. that at least makes the void *ptr, useful.. The example in 'man epoll' sorta made it look necessary to set the 'fd' of the union.

But that still doesn't fix the issue of course.. but good to know.
-
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/