.sp
\fBint eventfd(unsigned int \fP\fIinitval\fP\fB, int \fP\fIflags\fP\fB);\fP
.SH 説明
-\fBeventfd\fP() creates an "eventfd object" that can be used as an event
-wait/notify mechanism by user\-space applications, and by the kernel to
-notify user\-space applications of events. The object contains an unsigned
-64\-bit integer (\fIuint64_t\fP) counter that is maintained by the kernel.
-This counter is initialized with the value specified in the argument
-\fIinitval\fP.
+\fBeventfd\fP() は "eventfd オブジェクト" を生成する。 eventfd
+オブジェクトはユーザ空間アプリケーションがイベント待ち受け/通知用の 仕組みとして使うことができる。また、カーネルがユーザ空間アプリケーションに
+イベントを通知するためにも使うことができる。 このオブジェクトには、unsigned の 64 ビット整数 (\fIuint64_t\fP)
+型のカウンタが含まれており、このカウンタはカーネルにより管理される。 このカウンタは \fIinitval\fP 引き数で指定された値で初期化される。
以下の値のいくつかをビット単位の論理和 (OR) で指定することで、
\fBeventfd\fP() の振舞いを変更することができる。
\fBread\fP(2) は \fIuint64_t\fP の最大値 (すなわち 0xffffffffffffffff) を返す。
.RE
.IP
-The eventfd file descriptor also supports the other file\-descriptor
-multiplexing APIs: \fBpselect\fP(2) and \fBppoll\fP(2).
+eventfd ファイルディスクリプタは、これ以外のファイルディスクリプタ 多重 API である \fBpselect\fP(2) と \fBppoll\fP(2)
+もサポートしている。
.TP
\fBclose\fP(2)
ファイルディスクリプタがそれ以降は必要なくなった際には、クローズすべきである。 同じ eventfd
カーネルでのオーバヘッドは比べるとずっと小さく、ファイルディスクリプタも 一つしか必要としない (パイプの場合は二つ必要である)。
.\" or eventually syslets/threadlets
-When used in the kernel, an eventfd file descriptor can provide a bridge
-from kernel to user space, allowing, for example, functionalities like KAIO
-(kernel AIO) to signal to a file descriptor that some operation is
-complete.
+カーネル内で使用すると、eventfd ファイルディスクリプタはカーネル空間からユーザ空間へのブリッジ機能を提供することができ、 例えば KAIO
+(kernel AIO) のような機能が、あるファイルディスクリプタに何らかの操作が完了したことを 通知することができる。
eventfd ファイルディスクリプタの重要な点は、 eventfd ファイルディスクリプタが \fBselect\fP(2), \fBpoll\fP(2),
\fBepoll\fP(7) を使って他のファイルディスクリプタと全く同様に監視できる点である。 このことは、アプリケーションは「従来の