ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IONetworkStats.h |
Include: | Path <IOKit/network/IONetworkStats.h> |
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.
IONetworkStats |
typedef struct { UInt32 inputPackets; UInt32 inputErrors; UInt32 outputPackets; UInt32 outputErrors; UInt32 collisions; } IONetworkStats;
inputPackets
count input packets.
inputErrors
count input errors.
outputPackets
count output packets.
outputErrors
count output errors.
collisions
count collisions on CDMA networks.
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;
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.
Statistics recorded by IOOutputQueue objects.
kIONetworkStatsKey |
#define kIONetworkStatsKey "IONetworkStatsKey"
Defines the name of an IONetworkData that contains an IONetworkStats.
kIOOutputQueueStatsKey |
#define kIOOutputQueueStatsKey "IOOutputQueueStatsKey"
Defines the name of an IONetworkData that contains an IOOutputQueueStats.
|
Last Updated: 2008-12-19