58
59
updates a given cache depending on whether it needs to or not.
60
Definition at line 194 of file stash_cache.c.
62
References netsnmp_stash_cache_info_s::cache, netsnmp_cache_s::cache_hint, netsnmp_handler_args_s::handler, netsnmp_cache_s::magic, netsnmp_agent_request_info_s::mode, netsnmp_agent_add_list_data(), netsnmp_call_next_handler(), netsnmp_create_data_list(), netsnmp_get_new_stash_cache(), netsnmp_mib_handler_s::next, NULL, netsnmp_handler_args_s::reginfo, netsnmp_handler_args_s::reqinfo, and netsnmp_handler_args_s::requests.
64
Referenced by netsnmp_get_timed_bare_stash_cache_handler().
61
Definition at line 195 of file stash_cache.c.
65
62
.SS "\fBnetsnmp_oid_stash_node\fP** netsnmp_extract_stash_cache (\fBnetsnmp_agent_request_info\fP * reqinfo)"
67
64
extracts a pointer to the stash_cache info from the reqinfo structure.
69
Definition at line 112 of file stash_cache.c.
71
References netsnmp_agent_get_list_data().
73
Referenced by netsnmp_stash_to_next_helper(), and netsnmp_table_iterator_helper_handler().
66
Definition at line 113 of file stash_cache.c.
74
67
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_bare_stash_cache_handler (void)"
76
69
returns a single stash_cache handler that can be injected into a given handler chain (with a fixed timeout), but *only* if that handler chain explicitly supports stash cache processing.
78
Definition at line 78 of file stash_cache.c.
80
References netsnmp_get_timed_bare_stash_cache_handler(), and NULL.
82
Referenced by netsnmp_get_stash_cache_handler().
71
Definition at line 79 of file stash_cache.c.
83
72
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_stash_cache_handler (void)"
85
74
returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a fixed cache timeout.
87
Definition at line 87 of file stash_cache.c.
89
References netsnmp_get_bare_stash_cache_handler(), netsnmp_get_stash_to_next_handler(), and netsnmp_mib_handler_s::next.
91
Referenced by netsnmp_init_stash_cache_helper().
76
Definition at line 88 of file stash_cache.c.
92
77
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_timed_bare_stash_cache_handler (int timeout, oid * rootoid, size_t rootoid_len)"
94
79
returns a stash_cache handler that can be injected into a given handler chain (with the specified timeout and root OID values), but *only* if that handler chain explicitly supports stash cache processing.
96
81
Definition at line 44 of file stash_cache.c.
98
References _netsnmp_stash_cache_free(), _netsnmp_stash_cache_load(), netsnmp_mib_handler_s::myvoid, netsnmp_cache_create(), netsnmp_cache_handler_get(), netsnmp_create_handler(), netsnmp_handler_free(), netsnmp_stash_cache_helper(), netsnmp_mib_handler_s::next, and NULL.
100
Referenced by netsnmp_get_bare_stash_cache_handler(), and netsnmp_get_timed_stash_cache_handler().
101
82
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_timed_stash_cache_handler (int timeout, oid * rootoid, size_t rootoid_len)"
103
84
returns a stash_cache handler sub-chain that can be injected into a given (arbitrary) handler chain, using a configurable cache timeout.
105
Definition at line 100 of file stash_cache.c.
107
References netsnmp_get_stash_to_next_handler(), netsnmp_get_timed_bare_stash_cache_handler(), and netsnmp_mib_handler_s::next.
86
Definition at line 101 of file stash_cache.c.
108
87
.SS "void netsnmp_init_stash_cache_helper (void)"
110
89
initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use.
112
Definition at line 237 of file stash_cache.c.
114
References netsnmp_get_stash_cache_handler(), and netsnmp_register_handler_by_name().
116
Referenced by netsnmp_init_helpers().
91
Definition at line 238 of file stash_cache.c.
94
Generated automatically by Doxygen for net-snmp from the source code.