stashcache: austashcache:cautomaticallyrcachesidatanforrcertain handlers.(3)
NAME
netsnmpstashcache - automatically caches data for certain handlers.
Functions
netsnmpstashcacheinfo * netsnmpgetnewstashcache (void)
netsnmpmibhandler * netsnmpgetstashcachehandler (void)
returns a stashcache handler that can be injected into a given
handler chain.
netsnmpoidstashnode ** netsnmpextractstashcache
(netsnmpagentrequestinfo *reqinfo)
extracts a pointer to the stashcache info from the reqinfo
structure.
int netsnmpstashcachehelper (netsnmpmibhandler *handler,
netsnmphandlerregistration *reginfo, netsnmpagentrequestinfo
*reqinfo, netsnmprequestinfo *requests)
int netsnmpstashcacheupdate (netsnmpmibhandler *handler,
netsnmphandlerregistration *reginfo, netsnmpagentrequestinfo
*reqinfo, netsnmprequestinfo *requests, netsnmpstashcacheinfo
*cinfo)
updates a given cache depending on whether it needs to or not.
void netsnmpinitstashcachehelper (void)
initializes the stashcache helper which then registers a
stashcache handler as a run-time injectable handler for
configuration file use.
Detailed Description
This handler caches data in an optimized way which may aleviate the
need for the lower level handlers to perform as much optimization.
Specifically, somewhere in the lower level handlers must be a handler
that supports the MODEGETSTASH operation. Note that the
tableiterator helper supports this.
Function Documentation
netsnmpoidstashnode**** netsnmpextractstashcache
(netsnmpagentrequestinfo ** reqinfo)
extracts a pointer to the stashcache info from the reqinfo structure.
Definition at line 64 of file stashcache.c.
Referenced by netsnmptableiteratorhelperhandler().
netsnmpmibhandler** netsnmpgetstashcachehandler (void)
returns a stashcache handler that can be injected into a given handler
chain. Definition at line 42 of file stashcache.c.
References netsnmpmibhandlers::myvoid, netsnmpcreatehandler(), and
netsnmpmibhandler.
Referenced by netsnmpinitstashcachehelper().
void netsnmpinitstashcachehelper (void)
initializes the stashcache helper which then registers a stashcache
handler as a run-time injectable handler for configuration file use.
Definition at line 188 of file stashcache.c.
References netsnmpgetstashcachehandler(), and
netsnmpregisterhandlerbyname().
Referenced by netsnmpinithelpers().
int netsnmpstashcacheupdate (netsnmpmibhandler ** handler,,
netsnmphandlerregistration ** reginfo,, netsnmpagentrequestinfo **
reqinfo,, netsnmprequestinfo ** requests,, netsnmpstashcacheinfo **
cinfo)
updates a given cache depending on whether it needs to or not.
Definition at line 143 of file stashcache.c.
References atimenewMarker(), atimeready(), atimesetMarker(),
netsnmpagentrequestinfos::mode, netsnmpcallnexthandler(),
netsnmpcreatedatalist(), netsnmphandlerregistration,
netsnmpmibhandler, and netsnmpoidstashfree().
net-snmp stashcache: automaticJally20c0aches data for certain handlers.(3)
|