VxWorks Reference Manual : Libraries

smNetShow

NAME

smNetShow - shared memory network driver show routines

ROUTINES

smNetShow( ) - show information about a shared memory network

DESCRIPTION

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.

INCLUDE FILES

smPktLib.h

SEE ALSO

smNetShow, VxWorks Programmer's Guide: Network


Libraries : Routines

smNetShow( )

NAME

smNetShow( ) - show information about a shared memory network

SYNOPSIS

STATUS smNetShow
    (
    char * ifName, /* backplane interface name (NULL == "sm0") */
    BOOL   zero    /* TRUE = zap totals */
    )

DESCRIPTION

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.

EXAMPLE

 -> 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

RETURNS

OK, or ERROR if there is a hardware setup problem or the routine cannot be initialized.

SEE ALSO

smNetShow