SetOutputCallback

Set the callback function to be called when a new buffer is available from the kernel.

Declaration

IOReturn ( *SetOutputCallback)(
   IOStreamRef stream,
   IOStreamOutputCallback callback,
   void *context );

Parameters

stream

The IOStreamRef of the stream to operate on. Pass NULL to remove the callback.

Return Value

Returns kIOReturnSuccess if the callback was successfully set or removed.

See Also

Input and output

GetInputPort

Get the notification port for buffers moving in from user to kernel space.

GetInputQueue

Get the shared memory queue for buffers moving in from user to kernel space.

GetOutputPort

Get the notification port for buffers moving out from kernel to user space.

GetOutputQueue

Get the shared memory queue for buffers moving out from kernel to user space.