VxWorks Reference Manual : Libraries
usrSmObj - shared memory object initialization
usrSmObjInit( ) - initialize shared memory objects
usrSmObjInit( ) - initialize shared memory objects
STATUS usrSmObjInit ( char * bootString /* boot parameter string */ )
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.
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.
OK, or ERROR if unsuccessful.