PTR_T snmpSaInit ( PTR_T saId, /* ipchandle for socket/queue */ PTR_T sa_root, /* pointer to mib root node */ SA_REG_COMPLETE_T saRegComp /* registration complete routine */ )
Call this routine to initialize an SNMP subagent. Internally, this routine creates an IPC mechanism for receiving messages from the master agent and then spawns a task to run snmpSaMonitor( ), a function that monitors the IPC mechanism created by snmpSaInit( ). As input, snmpSaInit( ) takes the parameters: saId, sa_root, and saRegComp.
Although this function sets up the IPC mechanism and spawns the task that is effectively the SNMP subagent, this routine does not actually register the subagent with the master agent. The details of how and when one does that are entirely dependent upon the nature of the system you are designing. Thus, no generic registration utility is provided. For more information on sending a registration request to the master agent, see the description of hdrBlkBuild( ).