*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> aio_cancel (2)              
Title
Content
Arch
Section
 

AIO_CANCEL(2)

Contents


NAME    [Toc]    [Back]

     aio_cancel -- cancel an outstanding asynchronous I/O operation (REALTIME)

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <aio.h>

     int
     aio_cancel(int fildes, struct aiocb * iocb);

DESCRIPTION    [Toc]    [Back]

     The aio_cancel() system call cancels the outstanding asynchronous I/O
     request for the file descriptor specified in fildes.  If iocb is specified,
 only that specific asynchronous I/O request is cancelled.

     Normal asynchronous notification occurs for cancelled requests.  Requests
     complete with an error result of ECANCELED.

RESTRICTIONS    [Toc]    [Back]

     The aio_cancel() system call does not cancel asynchronous I/O requests
     for raw disk devices.  The aio_cancel() system call will always return
     AIO_NOTCANCELED for file descriptors associated with raw disk devices.

RETURN VALUES    [Toc]    [Back]

     The aio_cancel() system call returns -1 to indicate an error, or one of
     the following:

     [AIO_CANCELED]
		   All outstanding requests meeting the criteria specified
		   were cancelled.

     [AIO_NOTCANCELED]
		   Some requests were not cancelled, status for the requests
		   should be checked with aio_error(2).

     [AIO_ALLDONE]
		   All of the requests meeting the criteria have finished.

ERRORS    [Toc]    [Back]

     An error return from aio_cancel() indicates:

     [EBADF]		The fildes argument is an invalid file descriptor.

SEE ALSO    [Toc]    [Back]

      
      
     aio_error(2), aio_read(2), aio_return(2), aio_suspend(2), aio_write(2),
     aio(4)

STANDARDS    [Toc]    [Back]

     The aio_cancel() system call is expected to conform to the IEEE Std
     1003.1 (``POSIX.1'') standard.

HISTORY    [Toc]    [Back]

     The aio_cancel() system call first appeared in FreeBSD 3.0.  The first
     functional implementation of aio_cancel() appeared in FreeBSD 4.0.

AUTHORS    [Toc]    [Back]

     This manual page was originally written by Wes Peters <wes@softweyr.com>.
     Christopher M Sedore <cmsedore@maxwell.syr.edu> updated it when
     aio_cancel() was implemented for FreeBSD 4.0.


FreeBSD 5.2.1		       January 19, 2000 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
aio_cancel HP-UX cancel an asynchronous I/O operation
aio_error FreeBSD retrieve error status of asynchronous I/O operation (REALTIME)
aio_return FreeBSD retrieve return status of asynchronous I/O operation (REALTIME)
vwaitforio OpenBSD wait for all outstanding asynchronous writes
aio_cancel IRIX cancel an asynchronous I/O request
aio_fsync HP-UX force outstanding asynchronous operations on a file to the synchronized state
aio_write FreeBSD asynchronous write to a file (REALTIME)
aio_read FreeBSD asynchronous read from a file (REALTIME)
aio_suspend FreeBSD suspend until asynchronous I/O operations or timeout complete (REALTIME)
aio_read HP-UX start an asynchronous read operation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service