Re: Semaphore / Synchronizing write operations

This is a discussion on Re: Semaphore / Synchronizing write operations within the SNMP Users forums, part of the Networking and Network Related category; On 23/10/2007, vsaavedra <vsaavedra@maisis.pt> wrote: > The agent/mibgroup/mibII/setSerialNo.c dont use ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-23-2007
Dave Shield
 
Posts: n/a
Default Re: Semaphore / Synchronizing write operations

On 23/10/2007, vsaavedra <vsaavedra@maisis.pt> wrote:
> The agent/mibgroup/mibII/setSerialNo.c dont use the
>
> netsnmp_register_watched_spinlock( netsnmp_handler_registration
> *reginfo,int *spinlock) function!



Oh yes it does!

static int setserialno;
void
init_setSerialNo(void)
{
oid set_serial_oid[] = { 1, 3, 6, 1, 6, 3, 1, 1, 6, 1 };

netsnmp_register_watched_spinlock(
netsnmp_create_handler_registration("snmpSetSerial No", NULL,
set_serial_oid,
OID_LENGTH(set_serial_oid),
HANDLER_CAN_RWRITE),
&setserialno );
}



> For a simple scenario, whats the best aproach?


See above.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0