📄 snmpinit.c
字号:
/* * Copyright 2001-2005 Wind River Systems, Inc. * All rights reserved. Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//* * $Log: snmpinit.c,v $ * Revision 1.3 2001/11/08 22:18:34 meister * rework pathnames * * Revision 1.2 2001/11/06 21:20:40 josh * revised new path hacking * * Revision 1.1.1.1 2001/11/05 17:47:49 tneale * Tornado shuffle * * Revision 1.1.2.9 2001/11/02 21:15:10 meister * envoy/h/vxprotos.h -> snmp/vxagent/h/vxprotos.h * * Revision 1.1.2.8 2001/11/02 17:18:23 meister * split out user ans core dynamic config * * Revision 1.1.2.7 2001/10/19 21:34:18 meister * fix minor typos * * Revision 1.1.2.6 2001/10/19 21:10:32 meister * Get rid of the mesage-queue based method of communicating which components * are installed. * * Revision 1.1.2.5 2001/10/16 19:53:03 meister * Tornado 2 doesnt have a VX_USER_MODE #define. * * Revision 1.1.2.4 2001/10/16 18:30:09 meister * component file shuffling, use snmpdLog instead of raw printfs * * Revision 1.1.2.3 2001/09/27 01:10:16 meister * Split out coexistence support into V3 component * * Revision 1.1.2.2 2001/09/18 16:36:16 meister * snmpd config msgQ and mutex should have consistent names. * * Revision 1.1.2.1 2001/08/29 15:43:23 meister * component initialization for the vxworks snmpd components * *//* [clearcase]modification history-------------------01b,19apr05,job update copyright notices01a,24nov03,job update copyright information*/#include "copyright_wrs.h"#include <vxWorks.h>#include <msgQLib.h>#include <semLib.h>#include <taskLib.h>#include <stdio.h>#include <wrn/wm/snmp/vxagent/snmpdLib.h>#include <wrn/wm/snmp/vxagent/snmpdInit.h>#include <wrn/wm/snmp/engine/vxcmpnts.h>#include <wrn/wm/snmp/vxagent/vxprotos.h>unsigned int snmpdInstalledComponentsValue = 0;SEM_ID snmpdConfigMutex;void snmpdInitInstalledComponentsValue (void){ snmpdConfigMutex = semBCreate (SEM_Q_PRIORITY, SEM_FULL); semTake (snmpdConfigMutex,WAIT_FOREVER); snmpdInstalledComponentsValue = SNMPD_CORE_COMPONENT; semGive (snmpdConfigMutex);}void initSnmpd(void){ envoy_dyncfg_init (); snmpdInitInstalledComponentsValue ();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -