ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


IOService.h

See Also:
Includes:

Overview

This header contains the definition of the IOService class. IOService is the sole direct subclass of IORegistryEntry and is the base class of almost all I/O Kit family superclasses. IOService defines methods that support the life cycle of I/O Kit drivers. For more information on IOService, see I/O Kit Fundamentals.



Classes

IOService

The base class for most I/O Kit families, devices, and drivers.



Typedefs


IOServiceInterestHandler


typedef IOReturn ( *IOServiceInterestHandler)(
    void *target,
    void *refCon, 
    UInt32 messageType,
    IOService *provider, 
    void *messageArgument,
    vm_size_t argSize );  
Fields
target

Reference supplied when the notification was registered.

refCon

Reference constant supplied when the notification was registered.

messageType

Type of the message - IOKit defined in IOKit/IOMessage.h or family specific.

provider

The IOService object who is delivering the notification. It is retained for the duration of the handler's invocation and doesn't need to be released by the handler.

messageArgument

An argument for message, dependent on its type.

argSize

Non zero if the argument represents a struct of that size, used when delivering messages outside the kernel.


IOServiceNotificationHandler


typedef bool ( *IOServiceNotificationHandler)(
    void *target,
    void *refCon, 
    IOService *newService );  
Fields
target

Reference supplied when the notification was registered.

refCon

Reference constant supplied when the notification was registered.

newService

The IOService object the notification is delivering. It is retained for the duration of the handler's invocation and doesn't need to be released by the handler.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19