Commit 2a0a5221 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

util: epoll: rename revent to read event

A bit more readable and will be easy to distinguish from upcoming
hevent^Whangup_event.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 06e252de
......@@ -322,7 +322,13 @@ int setup_tcp_client(char *addr);
struct epoll_rfd {
int fd;
int (*revent)(struct epoll_rfd *);
/*
* EPOLLIN notification. The data is available for read in
* rfd->fd.
* @return 0 to resume polling, 1 to stop polling or a
* negative error code
*/
int (*read_event)(struct epoll_rfd *);
};
extern int epoll_add_rfd(int epfd, struct epoll_rfd *);
......
......@@ -1199,7 +1199,7 @@ int connect_to_page_server_to_recv(int epfd)
return -1;
ps_rfd.fd = page_server_sk;
ps_rfd.revent = page_server_async_read;
ps_rfd.read_event = page_server_async_read;
return epoll_add_rfd(epfd, &ps_rfd);
}
......
......@@ -114,7 +114,7 @@ static struct lazy_pages_info *lpi_init(void)
INIT_LIST_HEAD(&lpi->iovs);
INIT_LIST_HEAD(&lpi->reqs);
INIT_LIST_HEAD(&lpi->l);
lpi->lpfd.revent = handle_uffd_event;
lpi->lpfd.read_event = handle_uffd_event;
return lpi;
}
......
......@@ -1312,7 +1312,7 @@ int epoll_run_rfds(int epollfd, struct epoll_event *evs, int nr_fds, int timeout
struct epoll_rfd *rfd;
rfd = (struct epoll_rfd *)evs[i].data.ptr;
ret = rfd->revent(rfd);
ret = rfd->read_event(rfd);
if (ret < 0)
goto out;
if (ret > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment