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-Tag: v2.11.0-rc3~115 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ac06b602c61654c149bf6de10ba776ae0bb09fe2;p=lttng-tools.git 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) \