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

 


IONetworkStats.h

Include:

Path <IOKit/network/IONetworkStats.h>

Overview

This header provides you with various structures that provide statistics about network usage that you may find useful. Included are general and output queue statistics.



Typedefs


IONetworkStats


typedef struct { 
    UInt32 inputPackets; 
    UInt32 inputErrors; 
    UInt32 outputPackets; 
    UInt32 outputErrors; 
    UInt32 collisions; 
} IONetworkStats;  
Fields
inputPackets

count input packets.

inputErrors

count input errors.

outputPackets

count output packets.

outputErrors

count output errors.

collisions

count collisions on CDMA networks.

Discussion

Generic network statistics structure.


IOOutputQueueStats


typedef struct { 
    UInt32 capacity; 
    UInt32 size; 
    UInt32 peakSize; 
    UInt32 dropCount; 
    UInt32 outputCount; 
    UInt32 retryCount; 
    UInt32 stallCount; 
    UInt32 reserved[4]; 
} IOOutputQueueStats;  
Fields
capacity

queue capacity.

size

current size of the queue.

peakSize

peak size of the queue.

dropCount

number of packets dropped.

outputCount

number of output packets.

retryCount

number of retries.

stallCount

number of queue stalls.

Discussion

Statistics recorded by IOOutputQueue objects.

#defines


kIONetworkStatsKey


#define kIONetworkStatsKey "IONetworkStatsKey" 
Discussion

Defines the name of an IONetworkData that contains an IONetworkStats.


kIOOutputQueueStatsKey


#define kIOOutputQueueStatsKey "IOOutputQueueStatsKey" 
Discussion

Defines the name of an IONetworkData that contains an IOOutputQueueStats.


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