package/libs/libnl-tiny/src/cache_mngt.c
/**
 * Unregister a set of cache operations
 * @arg ops		cache operations
 *
 * Called by users of caches to announce a set of
 * cache operations is no longer available. The
 * specified cache operations must have been registered
 * previously using nl_cache_mngt_register()
 *
 * @return 0 on success or a negative error code
 */
Unregister a set of cache operations
@arg ops             cache operations

Called by users of caches to announce a set of
cache operations is no longer available. The
specified cache operations must have been registered
previously using nl_cache_mngt_register()

@return 0 on success or a negative error code
Unregister a set of cache operations @arg ops cache operations Called by users of caches to announce a set of cache operations is no longer available . The specified cache operations must have been registered previously using nl_cache_mngt_register () @return 0 on success or a negative error code
int nl_cache_mngt_unregister(struct nl_cache_ops *ops)
{
	struct nl_cache_ops *t, **tp;
	for (tp = &cache_ops; (t=*tp) != NULL; tp = &t->co_next)
		if (t == ops)
			break;
	if (!t)
		return -NLE_NOCACHE;
	NL_DBG(1, "Unregistered cache operations %s\n", ops->co_name);
	*tp = t->co_next;
	return 0;
}
int nl_cache_mngt_unregister ( struct nl_cache_ops * ops ) { struct nl_cache_ops * t , * * tp ; for ( tp = & cache_ops ; ( t = * tp ) != NULL ; tp = & t -> co_next ) if ( t == ops ) break ; if ( ! t ) return - NLE_NOCACHE ; NL_DBG ( 1 , " \n " , ops -> co_name ) ; * tp = t -> co_next ; return 0 ; }
Unregister a set of cache operations
 @arg ops             cache operations
Unregister a set of cache operations @arg ops cache operations