VxWorks Reference Manual : Libraries
smNetShow - shared memory network driver show routines
smNetShow( ) - show information about a shared memory network
This library provides show routines for the shared memory network interface driver.
The smNetShow( ) routine is provided as a diagnostic aid to show current shared memory network status.
smPktLib.h
smNetShow, VxWorks Programmer's Guide: Network
smNetShow( ) - show information about a shared memory network
STATUS smNetShow ( char * ifName, /* backplane interface name (NULL == "sm0") */ BOOL zero /* TRUE = zap totals */ )
This routine displays information about the different CPUs configured in a shared memory network specified by ifName. It prints error statistics and zeros these fields if zero is set to TRUE.
-> smNetShow Anchor at 0x800000 heartbeat = 705, header at 0x800010, free pkts = 237. cpu int type arg1 arg2 arg3 queued pkts --- -------- ---------- ---------- ---------- ----------- 0 poll 0x0 0x0 0x0 0 1 poll 0x0 0x0 0x0 0 2 bus-int 0x3 0xc9 0x0 0 3 mbox-2 0x2d 0x8000 0x0 0 input packets = 192 output packets = 164 output errors = 0 collisions = 0 value = 1 = 0x1
OK, or ERROR if there is a hardware setup problem or the routine cannot be initialized.