VxWorks Reference Manual : Libraries

usrSmObj

NAME

usrSmObj - shared memory object initialization

ROUTINES

usrSmObjInit( ) - initialize shared memory objects


Libraries : Routines

usrSmObjInit( )

NAME

usrSmObjInit( ) - initialize shared memory objects

SYNOPSIS

STATUS usrSmObjInit
    (
    char * bootString /* boot parameter string */
    )

DESCRIPTION

This routine initializes the shared memory objects facility. It sets up the shared memory objects facility if called from processor 0. Then it initializes a shared memory descriptor and calls smObjAttach( ) to attach this CPU to the shared memory object facility.

When the shared memory pool resides on the local CPU dual ported memory, SM_OBJ_MEM_ADRS must be set to NONE in configAll.h and the shared memory objects pool is allocated from the VxWorks system pool.

NOTE

The shared memory objects library requires information from fields in the VxWorks boot line. The functions are contained in the usrNetwork.c file. If no network services are included, usrNetwork.c is not included and the shared memory initialization fails. To avoid this problem, either add INCLUDE_NETWORK to configAll.h or extract the bootline cracking routines from usrNetwork.c and include them elsewhere.

RETURNS

OK, or ERROR if unsuccessful.

SEE ALSO

usrSmObj