Re: epoll pointer association

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



linux-net-owner@xxxxxxxxxxxxxxx wrote on 12/16/2005 09:04:39 PM:

> It would help to optimize my routines if I could
> associate a pointer with an epoll-managed fd and have
> the pointer supplied in each epoll event.

epoll_data_t is a union exactly for this purpose. Set
it to be a pointer to a struct that has the fd and/or
any other data you want.

                                                +-DLS

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux