eio_readlink

(PECL eio >= 0.0.1dev) Read value of a symbolic link. resource eio_readlink ( string $path, int $pri, callable $callback [, string $data = NULL ] ) Parameters: path Source symbolic link path pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX, or NULL. If NULL passed, pri internally is set to EIO_PRI_DEFAULT.

eio_readdir

(PECL eio >= 0.0.1dev) Reads through a whole directory resource eio_readdir ( string $path, int $flags, int $pri, callable $callback [, string $data = NULL ] ) Reads through a whole directory(via the opendir, readdir and closedir system calls) and returns either the names or an array in result argument of callback function, depending on the flags argument. Parameters: path

eio_readahead

(PECL eio >= 0.0.1dev) Perform file readahead into page cache resource eio_readahead ( mixed $fd, int $offset, int $length [, int $pri = EIO_PRI_DEFAULT [, callable $callback = NULL [, mixed $data = NULL ]]] ) eio_readahead() populates the page cache with data from a file so that subsequent reads from that file will not block on disk I/O. See READAHEAD(2) man page for details. Parameters:

eio_read

(PECL eio >= 0.0.1dev) Read from a file descriptor at given offset. resource eio_read ( mixed $fd, int $length, int $offset, int $pri, callable $callback [, mixed $data = NULL ] ) eio_read() reads up to length bytes from fd file descriptor at offset. The read bytes are stored in result argument of callback. Parameters: fd Stream, Socket resource, or numeric file descr

eio_poll

(PECL eio >= 0.0.1dev) Can be to be called whenever there are pending requests that need finishing. int eio_poll ( void ) eio_poll() can be used to implement special event loop. For this eio_nreqs() could be used to test if there are unprocessed requests. Note: Applicable only when implementing userspace event loop. Returns: If any request invocation returns a non-zero value, returns that va

eio_open

(PECL eio >= 0.0.1dev) Opens a file resource eio_open ( string $path, int $flags, int $mode, int $pri, callable $callback [, mixed $data = NULL ] ) eio_open() opens file specified by path in access mode mode with Parameters: path Path of the file to be opened. Warning In some SAPIs(e.g. PHP-FPM) it could fail, if you don't specify full path.

eio_nthreads

(PECL eio >= 0.0.1dev) Returns number of threads currently in use int eio_nthreads ( void ) Returns: eio_nthreads() returns number of threads currently in use.

eio_nreqs

(PECL eio >= 0.0.1dev) Returns number of requests to be processed int eio_nreqs ( void ) eio_nreqs() could be called in a custom loop calling eio_poll(). Returns: eio_nreqs() returns number of requests to be processed. Examples: eio_nreqs() example <?php function res_cb($data, $result) {     var_dump($data);     var

eio_nready

(PECL eio >= 0.0.1dev) Returns number of not-yet handled requests int eio_nready ( void ) Returns: eio_nready() returns number of not-yet handled requests

eio_npending

(PECL eio >= 0.0.1dev) Returns number of finished, but unhandled requests int eio_npending ( void ) eio_npending() returns number of finished, but unhandled requests Returns: eio_npending() returns number of finished, but unhandled requests.