aio_cancel - Online Linux Manual PageSection : 3
Updated : 2022-12-15
Source : Linux man-pages 6.03

NAMEaio_cancel − cancel an outstanding asynchronous I/O request

LIBRARYReal-time library (librt, −lrt)

SYNOPSIS#include <aio.h>"int aio_cancel(int fd, struct aiocb *aiocbp);

DESCRIPTIONThe aio_cancel() function attempts to cancel outstanding asynchronous I/O requests for the file descriptor fd. If aiocbp is NULL, all such requests are canceled. Otherwise, only the request described by the control block pointed to by aiocbp is canceled. (See aio(7) for a description of the aiocb structure.) Normal asynchronous notification occurs for canceled requests (see aio(7) and sigevent(7)). The request return status (aio_return(3)) is set to −1, and the request error status (aio_error(3)) is set to ECANCELED. The control block of requests that cannot be canceled is not changed. If the request could not be canceled, then it will terminate in the usual way after performing the I/O operation. (In this case, aio_error(3) will return the status EINPROGRESSS.) If aiocbp is not NULL, and fd differs from the file descriptor with which the asynchronous operation was initiated, unspecified results occur. Which operations are cancelable is implementation-defined.

RETURN VALUEThe aio_cancel() function returns one of the following values: AIO_CANCELED  All requests were successfully canceled. AIO_NOTCANCELED  At least one of the requests specified was not canceled because it was in progress. In this case, one may check the status of individual requests using aio_error(3). AIO_ALLDONE  All requests had already been completed before the call. −1  An error occurred. The cause of the error can be found by inspecting errno.

ERRORSEBADF  fd is not a valid file descriptor. ENOSYS  aio_cancel() is not implemented.

VERSIONSThe aio_cancel() function is available since glibc 2.1.

ATTRIBUTESFor an explanation of the terms used in this section, see attributes(7). InterfaceAttributeValue aio_cancel() Thread safetyMT-Safe

STANDARDSPOSIX.1-2001, POSIX.1-2008.

EXAMPLESSee aio(7).

SEE ALSOaio_error(3), aio_fsync(3), aio_read(3), aio_return(3), aio_suspend(3), aio_write(3), lio_listio(3), aio(7)
0
Johanes Gumabo
Data Size   :   11,094 byte
man-aio_cancel.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 202,307
Visitor ID   :     :  
Visitor IP   :   13.58.61.176   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.