Abort
Aborts all of the pipe’s pending I/O requests.
Declaration
virtual kern_return_t Abort(IOOptionBits options, kern_return_t withError, IOService *forClient);Parameters
- options:
Options for how to abort the requests. For a list of possible values, see Iousbabortoptions.
- withError:
The error value to report for each request. Specify
kIOReturnAbortedfor this parameter. - forClient:
The service that initiated the requests. Specify a non
NULLvalue for this parameter only for pipes associated with a control endpoint; specifyNULLfor other endpoint types. For a control endpoint, you can also specifyNULLto abort all requests.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
If the options argument includes kAbortSynchronous, this method blocks all new I/O requests except those submitted by an aborted completion routine.