Contents

message

Receives a generic message delivered from an attached provider.

Declaration

virtual IOReturn message(
 UInt32 type,
 IOService *provider, 
 void *argument = 0 );

Parameters

  • type:

    A type defined in IOMessage.h or defined by the provider family.

  • provider:

    The provider from which the message originates.

  • argument:

    An argument defined by the provider family, not used by IOService.

Return Value

An IOReturn code defined by the message type.

Overview

A provider may deliver messages via the message method to its clients informing them of state changes, such as kIOMessageServiceIsTerminated or kIOMessageServiceIsSuspended. Certain messages are defined by the I/O Kit in IOMessage.h while others may be family dependent. This method is implemented in the client to receive messages.

See Also

Miscellaneous