HOW to remove 'netsnmp_cache' structure from link list headed by 'cache_head'

lucky goyal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

I have implemented a SNMP MIB as a dynamically loadable module. The code is generated using 'mib2c' tool and uses MFD API's. On loading the module the cache structure 'netsnmp_cache' is allocated on heap memory and added in a link list maintained by agent using 'netsnmp_cache_create()' API. But when the module is unloaded I want to deallocate the memory allocated for the 'netsnmp_cache' structure and also ensure that the node is removed from the doubly linked list. But I could not find a counterpart of 'netsnmp_cache_create()' which could be used to destroy the cache entry on module unload. Could somebody please help me with this problem. Are there any API's  available in Net-SNMP code which could be used or what other methods can be used to achieve this goal of a clean module unloading.

Thanks and Regards,
Lucky

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.