From: Jérémie Galarneau Date: Mon, 24 Jun 2019 19:08:36 +0000 (-0400) Subject: Docs: misleading documentation of compat_epoll_create X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=5a12931eca4ae292cc659222d5da12b9b7480808 Docs: misleading documentation of compat_epoll_create The documentation of compat_epoll_create explicitly mentions that it can't fail because of a memory allocation error. This is false as the function allocates an array of struct epoll_event. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index d7020f366..4b2fc5036 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -119,9 +119,7 @@ static inline int __lttng_epoll_get_prev_fd(struct lttng_poll_event *events, #define LTTNG_POLL_GET_PREV_FD(e, i, nb_fd) \ __lttng_epoll_get_prev_fd(LTTNG_REF(e), i, nb_fd) -/* - * Create the epoll set. No memory allocation is done here. - */ +/* Create the epoll set. */ extern int compat_epoll_create(struct lttng_poll_event *events, int size, int flags); #define lttng_poll_create(events, size, flags) \