#include #include #include "epoll2.h" #include "die.h" void set_epoll_descriptor(int fd_epoll, int action, int fd_toadd, int events) { int ret; struct epoll_event ev; memset(&ev, 0, sizeof(ev)); ev.events = events; ev.data.fd = fd_toadd; ret = epoll_ctl(fd_epoll, action, fd_toadd, &ev); if (ret < 0) panic("Cannot add socket for epoll!\n"); } int set_epoll_descriptor2(int fd_epoll, int action, int fd_toadd, int events) { struct epoll_event ev; memset(&ev, 0, sizeof(ev)); ev.events = events; ev.data.fd = fd_toadd; return epoll_ctl(fd_epoll, action, fd_toadd, &ev); } et-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Pinto <Joao.Pinto@synopsys.com>2016-10-13 18:26:13 +0100
committerBjorn Helgaas <bhelgaas@google.com>2016-10-17 07:53:26 -0500
commitdabe7ecc572447c6f8a052cc77e220998c7f9c38 (patch)
treef1e79b31a35f23d54822dd7dd4f8a8be78478cb1 /Documentation/devicetree
parent1001354ca34179f3db924eb66672442a173147dc (diff)
PCI: designware-plat: Change maintainer to Jose Abreu
Change designware-plat maintainer to Jose Abreu. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Documentation/devicetree')