#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); } net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-12-12 12:17:19 +0000
committerMark Brown <broonie@kernel.org>2016-12-12 12:17:19 +0000
commitc1b0789271b13dd7561f78370122c3183cd74ab0 (patch)
treef4eda3db7bd1b059de81cd4bec7fbb871661dbe2 /sound/usb/usx2y
parent69973b830859bc6529a7a0468ba0d80ee5117826 (diff)
parent618c808968852609d2d9f0e5cfc351a4807ef8d0 (diff)
Merge remote-tracking branch 'regulator/fix/axp20x' into regulator-linus
Diffstat (limited to 'sound/usb/usx2y')