text
stringlengths 0
234
|
---|
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.so man3/slist.3 |
.so man3/lround.3 |
.so man3/nextup.3 |
.\" copyright (c) 2003 davide libenzi |
.\" and copyright 2008, 2009, 2012 michael kerrisk <[email protected]> |
.\" davide libenzi <[email protected]> |
.\" |
.\" %%%license_start(gplv2+_sw_3_para) |
.\" this program is free software; you can redistribute it and/or modify |
.\" it under the terms of the gnu general public license as published by |
.\" the free software foundation; either version 2 of the license, or |
.\" (at your option) any later version. |
.\" |
.\" this program is distributed in the hope that it will be useful, |
.\" but without any warranty; without even the implied warranty of |
.\" merchantability or fitness for a particular purpose. see the |
.\" gnu general public license for more details. |
.\" |
.\" you should have received a copy of the gnu general public |
.\" license along with this manual; if not, see |
.\" <http://www.gnu.org/licenses/>. |
.\" %%%license_end |
.\" |
.\" modified 2004-06-17 by michael kerrisk <[email protected]> |
.\" modified 2005-04-04 by marko kohtala <[email protected]> |
.\" 2008-10-10, mtk: add description of epoll_create1() |
.\" |
.th epoll_create 2 2021-03-22 "linux" "linux programmer's manual" |
.sh name |
epoll_create, epoll_create1 \- open an epoll file descriptor |
.sh synopsis |
.nf |
.b #include <sys/epoll.h> |
.pp |
.bi "int epoll_create(int " size ); |
.bi "int epoll_create1(int " flags ); |
.fi |
.sh description |
.br epoll_create () |
creates a new |
.br epoll (7) |
instance. |
since linux 2.6.8, the |
.i size |
argument is ignored, but must be greater than zero; see notes. |
.pp |
.br epoll_create () |
returns a file descriptor referring to the new epoll instance. |
this file descriptor is used for all the subsequent calls to the |
.b epoll |
interface. |
when no longer required, the file descriptor returned by |
.br epoll_create () |
should be closed by using |
.br close (2). |
when all file descriptors referring to an epoll instance have been closed, |
the kernel destroys the instance |
and releases the associated resources for reuse. |
.ss epoll_create1() |
if |
.i flags |
is 0, then, other than the fact that the obsolete |
.i size |
argument is dropped, |
.br epoll_create1 () |
is the same as |
.br epoll_create (). |
the following value can be included in |
.ir flags |
to obtain different behavior: |
.tp |
.b epoll_cloexec |
set the close-on-exec |
.rb ( fd_cloexec ) |
flag on the new file descriptor. |
see the description of the |
.b o_cloexec |
flag in |
.br open (2) |
for reasons why this may be useful. |
.sh return value |
on success, |
these system calls |
return a file descriptor (a nonnegative integer). |
on error, \-1 is returned, and |
.i errno |
is set to indicate the error. |
.sh errors |
.tp |
.b einval |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.