Instance Property

setMessageCallback

Set callback for user space message routine.

Declaration

void (*setMessageCallback)(void *self, void *refCon, IOFWSBP2MessageCallback callback);

Parameters

self

Pointer to IOFireWireSBP2LibLUNInterface.

refCon

RefCon to be returned as first argument of completion routine

callback

Address of completion routine.

Discussion

In FireWire & SBP2 bus status messages are delivered via IOKit's message routine. This routine is emulated in user space for SBP2 & FireWire messages via this callback. You should register here for bus reset, and reconnect messages.