openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/cache_mngt.c
struct nl_cache* nl_cache_mngt_require_safe(const char* name)
{
    struct nl_cache* cache;

    if ((cache = nl_cache_mngt_require(name)))
        nl_cache_get(cache);

    return cache;
}
/**
 * Return cache previously provided via nl_cache_mngt_provide()
 * @arg name		Name of cache to lookup
 *
 * @note The reference counter of the returned cache is incremented
 *       and must be decremented after use with nl_cache_put().
 *
 * @return Pointer to cache or NULL if none registered
 */
Return cache previously provided via nl_cache_mngt_provide()
@arg name            Name of cache to lookup

@note The reference counter of the returned cache is incremented
and must be decremented after use with nl_cache_put().

@return Pointer to cache or NULL if none registered
Return cache previously provided via nl_cache_mngt_provide () @arg name Name of cache to lookup @note The reference counter of the returned cache is incremented and must be decremented after use with nl_cache_put () . @return Pointer to cache or NULL if none registered
struct nl_cache* nl_cache_mngt_require_safe(const char* name)
{
    struct nl_cache* cache;
    if ((cache = nl_cache_mngt_require(name)))
        nl_cache_get(cache);
    return cache;
}
struct nl_cache * nl_cache_mngt_require_safe ( const char * name ) { struct nl_cache * cache ; if ( ( cache = nl_cache_mngt_require ( name ) ) ) nl_cache_get ( cache ) ; return cache ; }
Return cache previously provided via nl_cache_mngt_provide()
 @arg name            Name of cache to lookup
Return cache previously provided via nl_cache_mngt_provide () @arg name Name of cache to lookup