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_ops* nl_cache_ops_lookup(const char* name)
{
    struct nl_cache_ops* ops;

    nl_read_lock(&cache_ops_lock);
    ops = __nl_cache_ops_lookup(name);
    nl_read_unlock(&cache_ops_lock);

    return ops;
}
/**
 * Lookup cache operations by name
 * @arg name		name of the cache type
 *
 * @attention This function is not safe, it does not increment the reference
 *            counter. Please use nl_cache_ops_lookup_safe().
 *
 * @return The cache operations or NULL if not found.
 */
Lookup cache operations by name
@arg name            name of the cache type

@attention This function is not safe, it does not increment the reference
counter.

@return The cache operations or NULL if not found.
Lookup cache operations by name @arg name name of the cache type @attention This function is not safe it does not increment the reference counter . @return The cache operations or NULL if not found .
struct nl_cache_ops* nl_cache_ops_lookup(const char* name)
{
    struct nl_cache_ops* ops;
    nl_read_lock(&cache_ops_lock);
    ops = __nl_cache_ops_lookup(name);
    nl_read_unlock(&cache_ops_lock);
    return ops;
}
struct nl_cache_ops * nl_cache_ops_lookup ( const char * name ) { struct nl_cache_ops * ops ; nl_read_lock ( & cache_ops_lock ) ; ops = __nl_cache_ops_lookup ( name ) ; nl_read_unlock ( & cache_ops_lock ) ; return ops ; }
Lookup cache operations by name
 @arg name            name of the cache type
Lookup cache operations by name @arg name name of the cache type