From ccadaba2f36b15b5d3c5eb0af744be5328c5594a Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 16 Jan 2009 21:40:15 +1300 Subject: [PATCH] epoll_ctl.2: Document ENOSPC error (new in Linux 2.6.28) This error results when the limit imposed by /proc/sys/fs/epoll/max_user_watches is encountered. Signed-off-by: Michael Kerrisk --- man2/epoll_ctl.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man2/epoll_ctl.2 b/man2/epoll_ctl.2 index b4d048e66..725c445e2 100644 --- a/man2/epoll_ctl.2 +++ b/man2/epoll_ctl.2 @@ -205,6 +205,15 @@ is not registered on with this epoll instance. There was insufficient memory to handle the requested .I op control operation. +.TP ENOSPC +The limit imposed by +.I /proc/sys/fs/epoll/max_user_watches +was encountered while trying to register +.RB ( EPOLL_CTL_ADD ) +a new file descriptor on an epoll instance. +See +.BR epoll (7) +for further details. .TP .B EPERM The target file