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

 


IOKernelDebugger.h

Includes:

Overview



Classes

IOKernelDebugger

Kernel debugger nub.



Typedefs


IODebuggerLockState


typedef enum { 
    kIODebuggerLockTaken = 0x1 
} IODebuggerLockState;  
Constants
kIODebuggerLockTaken

Set if the debugger lock was taken.

Discussion

Defines flags returned by IOKernelDebugger::lock().


IODebuggerRxHandler


typedef void ( *IODebuggerRxHandler)(
    IOService *target, 
    void *buffer, 
    UInt32 *length, 
    UInt32 timeout );  
Fields
target

The target object.

buffer

KDP receive buffer. The buffer allocated has room for 1518 bytes. The receive handler must not overflow this buffer.

length

The amount of data received and placed into the buffer. Set to 0 if no frame was received during the poll interval.

timeout

The amount of time to poll in milliseconds while waiting for a frame to arrive.

Discussion

Defines the receive handler that must be implemented by the target to service KDP receive requests. This handler is called by kdpReceiveDispatcher().


IODebuggerTxHandler


typedef void ( *IODebuggerTxHandler)(
    IOService *target, 
    void *buffer, 
    UInt32 length );  
Fields
target

The target object.

buffer

KDP transmit buffer. This buffer contains a KDP frame to be sent on the network.

length

The number of bytes in the transmit buffer.

Discussion

Defines the transmit handler that must be implemented by the target to service KDP transmit requests. This handler is called by kdpTransmitDispatcher().


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