Scroll to navigation

io_cancel(2) System Calls Manual io_cancel(2)

NOM

io_cancel - Annuler une opération d'entrée-sortie asynchrone en attente

BIBLIOTHÈQUE

Bibliothèque C standard (libc-lc)

SYNOPSIS

#include <linux/aio_abi.h>    /* Définition des types nécessaires */
#include <sys/syscall.h>      /* Définition des contantes SYS_* */
#include <unistd.h>
int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb,
            struct io_event *result);

DESCRIPTION

Note: you probably want to use the io_getevents(3) wrapper function provided by libaio; see VERSIONS.

L'appel système io_cancel() essaye d'annuler l'opération d'E/S asynchrone précédemment soumise par l'appel io_submit(2). L'argument iocb décrit l'opération à annuler et l'argument ctx_id est le contexte d'E/S asynchrone auquel l'opération a été soumise. Si l'opération est correctement annulée, l'événement sera copié dans la zone pointée par result sans être placé dans la file des événements terminés.

VALEUR RENVOYÉE

On success, io_cancel() returns 0. On error, -1 is returned, and errno is set to indicate the error.

ERREURS

L'opération iocb n'a pas été annulée.
L'une des structures de données pointe sur une zone invalide.
Le contexte indiqué par ctx_id est invalide.
L'appel système io_cancel() n'est pas implémenté sur cette architecture.

VERSIONS

libaio provides a wrapper function with the same name, but different prototype and return value. You probably want to use that wrapper.

NORMES

Linux.

HISTORIQUE

Linux 2.5.

VOIR AUSSI

io_destroy(2), io_getevents(2), io_setup(2), io_submit(2), io_cancel(3), aio(7)

TRADUCTION

La traduction française de cette page de manuel a été créée par Christophe Blaess <https://www.blaess.fr/christophe/>, Stéphan Rafin <stephan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, François Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard <fevrier@tigreraye.org>, Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>, Julien Cristau <jcristau@debian.org>, Thomas Huriaux <thomas.huriaux@gmail.com>, Nicolas François <nicolas.francois@centraliens.net>, Florentin Duneau <fduneau@gmail.com>, Simon Paillard <simon.paillard@resel.enst-bretagne.fr>, Denis Barbier <barbier@debian.org>, David Prévot <david@tilapin.org> et Jean-Philippe MENGUAL <jpmengual@debian.org>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à debian-l10n-french@lists.debian.org.

11 avril 2026 Linux man-pages 6.18