~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to man/netsnmp_callback.3

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "A generic callback mechanism" 3 "5 Sep 2008" "Version 5.4.2" "net-snmp" \" -*- nroff -*-
 
1
.TH "A generic callback mechanism" 3 "23 May 2010" "Version 5.4.3.pre1" "net-snmp" \" -*- nroff -*-
2
2
.ad l
3
3
.nh
4
4
.SH NAME
63
63
.RI "void \fBclear_callback\fP (void)"
64
64
.br
65
65
.ti -1c
66
 
.RI "\fBsnmp_gen_callback\fP * \fBsnmp_callback_list\fP (int major, int minor)"
 
66
.RI "struct \fBsnmp_gen_callback\fP * \fBsnmp_callback_list\fP (int major, int minor)"
67
67
.br
68
68
.in -1c
69
69
.SH "Function Documentation"
70
70
.PP 
71
71
.SS "int netsnmp_callback_clear_client_arg (void * ptr, int i, int j)"
72
72
.PP
73
 
find and clear client args that match ptr 
74
 
.PP
75
 
\fBParameters:\fP
 
73
find and clear client args that match ptr \fBParameters:\fP
76
74
.RS 4
77
75
\fIptr\fP pointer to search for 
78
76
.br
84
82
 
85
83
.PP
86
84
Definition at line 474 of file callback.c.
87
 
.PP
88
 
References snmp_gen_callback::next, NULL, snmp_gen_callback::sc_callback, and snmp_gen_callback::sc_client_arg.
89
 
.PP
90
 
Referenced by clear_callback().
91
85
.SS "int snmp_call_callbacks (int major, int minor, void * caller_arg)"
92
86
.PP
93
 
This function calls the callback function for each registered callback of type major and minor. 
94
 
.PP
95
 
\fBParameters:\fP
 
87
This function calls the callback function for each registered callback of type major and minor. \fBParameters:\fP
96
88
.RS 4
97
89
\fImajor\fP is the SNMP callback major type used
98
90
.br
116
108
 
117
109
.PP
118
110
Definition at line 298 of file callback.c.
119
 
.PP
120
 
References _callback_lock(), _callback_unlock(), init_callbacks(), snmp_gen_callback::next, NULL, snmp_gen_callback::sc_callback, and snmp_gen_callback::sc_client_arg.
121
 
.PP
122
 
Referenced by add_trap_session(), check_access(), in_a_view(), log_handler_callback(), netsnmp_acm_check_subtree(), netsnmp_register_mib(), netsnmp_register_mib_table_row(), read_configs(), read_premib_configs(), snmp_shutdown(), snmp_store(), and unregister_mibs_by_session().
123
111
.SS "int snmp_register_callback (int major, int minor, SNMPCallback * new_callback, void * arg)"
124
112
.PP
125
 
This function registers a generic callback function. 
126
 
.PP
127
 
The major and minor values are used to set the new_callback function into a global static multi-dimensional array of type struct \fBsnmp_gen_callback\fP. The function makes sure to append this callback function at the end of the link list, snmp_gen_callback->next.
 
113
This function registers a generic callback function. The major and minor values are used to set the new_callback function into a global static multi-dimensional array of type struct \fBsnmp_gen_callback\fP. The function makes sure to append this callback function at the end of the link list, snmp_gen_callback->next.
128
114
.PP
129
115
\fBParameters:\fP
130
116
.RS 4
180
166
 
181
167
.PP
182
168
Definition at line 230 of file callback.c.
183
 
.PP
184
 
References netsnmp_register_callback().
185
 
.PP
186
 
Referenced by init_snmp_alarm(), netsnmp_init_handler_conf(), and netsnmp_register_save_list().
187
169
.SS "int snmp_unregister_callback (int major, int minor, SNMPCallback * target, void * arg, int matchargs)"
188
170
.PP
189
 
This function unregisters a specified callback function given a major and minor type. 
190
 
.PP
191
 
Note: no bound checking on major and minor.
 
171
This function unregisters a specified callback function given a major and minor type. Note: no bound checking on major and minor.
192
172
.PP
193
173
\fBParameters:\fP
194
174
.RS 4
198
178
.br
199
179
\fItarget\fP is the callback function that will be unregistered.
200
180
.br
201
 
\fIarg\fP is a void pointer used for comparison against the registered callback's sc_client_arg variable.
 
181
\fIarg\fP is a void pointer used for comparison against the registered callback's sc_client_arg \fBvariable\fP.
202
182
.br
203
 
\fImatchargs\fP is an integer used to bypass the comparison of arg and the callback's sc_client_arg variable only when matchargs is set to 0.
 
183
\fImatchargs\fP is an integer used to bypass the comparison of arg and the callback's sc_client_arg \fBvariable\fP only when matchargs is set to 0.
204
184
.RE
205
185
.PP
206
186
\fBReturns:\fP
220
200
set cleanup flag? 
221
201
.PP
222
202
Definition at line 418 of file callback.c.
223
 
.PP
224
 
References _callback_lock(), _callback_unlock(), CALLBACK_LOCK_COUNT, init_callbacks(), snmp_gen_callback::next, NULL, snmp_gen_callback::sc_callback, snmp_gen_callback::sc_client_arg, and SNMP_FREE.
 
203
.SH "Author"
 
204
.PP 
 
205
Generated automatically by Doxygen for net-snmp from the source code.