2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Abort an I/O request.
8 #include <aros/debug.h>
9 #include <exec/execbase.h>
11 #include <aros/libcall.h>
12 #include <proto/exec.h>
14 /*****************************************************************************
18 AROS_LH1(LONG
, AbortIO
,
21 AROS_LHA(struct IORequest
*, iORequest
, A1
),
24 struct ExecBase
*, SysBase
, 80, Exec
)
27 Calls the AbortIO vector of the appropriate device to stop an
28 asynchronously started io request before completion. This may
29 or may not be done. You still have to do a WaitIO() on the
33 iORequest - Pointer to iorequest structure.
36 Errorcode if the abort request failed, 0 if the abort request went
37 well. io_Error will then be set to IOERR_ABORTED.
46 OpenDevice(), CloseDevice(), DoIO(), SendIO(), WaitIO()
50 ******************************************************************************/
53 ASSERT_VALID_PTR(iORequest
);
54 ASSERT_VALID_PTR(iORequest
->io_Device
);
56 return AROS_LVO_CALL1(ULONG
,
57 AROS_LCA(struct IORequest
*,iORequest
,A1
),
58 struct Device
*,iORequest
->io_Device
,6,