Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Release Notes for HP-UX 11.0: HP 9000 Computers > Chapter 2 Major Changes and Features of HP-UX 11.0

POSIX 1003.1b Asynchronous Input/Output

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

Asynchronous Input/Output allows a process (thread) to start multiple simultaneous read and/or write operations to multiple files, to wait for or obtain notification of completion of requested operations, and to retrieve the status of completed operations. The purpose of the POSIX Asynchronous I/O facility is to allow a process (thread) to overlap some elements of computation and information processing with I/O processing. The POSIX Asynchronous I/O facility includes the following interface functions:

lio_write(2)Start a list of asynchronous write operations
lio_listio(2)Start a list of asynchronous I/O operations
aio_suspend(2)Wait for completion of one or more asynchronous I/O operations
aio_error(2)Retrieve the error status of an asynchronous I/O operation
aio_return(2)Retrieve the return status of an asynchronous I/O operation and free any associated system resources
aio_cancel(2)Request cancellation of a pending asynchronous I/O operation
aio_fsync(2)Initiate synchronization of the media image of a file to which asynchronous operations have been addressed

Asynchronous I/O Control Block (aiocb)

The Asynchronous I/O Control Block is used as a parameter to all of the asynchronous I/O functions. The aiocb specifies parameters for an asynchronous I/O operation in a call to aio_read() , aio_write(), or lio_listio() and then may be used as a "handle" for the enqueued asynchronous I/O operation in a subsequent call to aio_cancel(), aio_suspend(), aio_fsync(), aio_error(), or aio_return(). The aiocb structure is defined in sys/aio.h .

Summary of Change

This is new functionality that is being introduced in 11.0.

The following is the list of manpages for the POSIX Asynchronous I/O system calls:

aio_cancel(2)

aio_error(2)

aio_fsync(2)

aio_read(2)

aio_return(2)

aio_suspend(2)

aio_write(2)

lio_listio(2)

aio(5)

Impact

The addition of this new functionality does not impact the operation of the rest of the system.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1998 Hewlett-Packard Development Company, L.P.