Open

Open an IOStream from user space.

Declaration

IOReturn ( *Open)(
   IOStreamRef stream,
   IOOptionBits options );

Parameters

stream

The reference to the stream returned by QueryInterface.

options

Open options. Currently unused.

Return Value

If the stream could not be opened or the buffers could not be mapped, an error will be returned.

Overview

The Open function opens the stream and maps the memory for the shared input and output queues into the current task, as well as the memory for all the buffers in the queue. It also creates the notification ports for input and output.

See Also

Opening and closing streams

Close

Closes an IOStream.