snmpdPktLockGet( )

NAME

snmpdPktLockGet( ) - lock an SNMP packet

SYNOPSIS

STATUS  snmpdPktLockGet 
    ( 
    SNMP_PKT_T *  pktp  /* snmp packet */ 
    )

DESCRIPTION

This routine obtains a lock on the SNMP packet being processed, which must be obtained by any asynchronous method routine prior to calling any of the routines getproc_*, nextproc_*, testproc_*, or setproc_*, or also snmpdContinue( ). The routine snmpdContinue( ) releases the lock before returning. No other routine can release this lock.

This routine blocks until the lock is obtained.

RETURNS

OK, or ERROR on failure.

SEE ALSO

snmpdLib, snmpProcLib, snmpdContinue( )