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_associate(int protocol, int msgtype)
{
    struct nl_cache_ops* ops;

    nl_read_lock(&cache_ops_lock);
    ops = __cache_ops_associate(protocol, msgtype);
    nl_read_unlock(&cache_ops_lock);

    return ops;
}
/**
 * Associate protocol and message type to cache operations
 * @arg protocol		netlink protocol
 * @arg msgtype			netlink message type
 *
 * @attention This function is not safe, it does not increment the reference
 *            counter. Please use nl_cache_ops_associate_safe().
 *
 * @see nl_cache_ops_associate_safe()
 *
 * @return The cache operations or NULL if no match found.
 */
Associate protocol and message type to cache operations
@arg protocol                netlink protocol
@arg msgtype                 netlink message type

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



@return The cache operations or NULL if no match found.
Associate protocol and message type to cache operations @arg protocol netlink protocol @arg msgtype netlink message type @attention This function is not safe it does not increment the reference counter . @return The cache operations or NULL if no match found .
struct nl_cache_ops* nl_cache_ops_associate(int protocol, int msgtype)
{
    struct nl_cache_ops* ops;
    nl_read_lock(&cache_ops_lock);
    ops = __cache_ops_associate(protocol, msgtype);
    nl_read_unlock(&cache_ops_lock);
    return ops;
}
struct nl_cache_ops * nl_cache_ops_associate ( int protocol , int msgtype ) { struct nl_cache_ops * ops ; nl_read_lock ( & cache_ops_lock ) ; ops = __cache_ops_associate ( protocol , msgtype ) ; nl_read_unlock ( & cache_ops_lock ) ; return ops ; }
Associate protocol and message type to cache operations
 @arg protocol                netlink protocol
 @arg msgtype                 netlink message type
Associate protocol and message type to cache operations @arg protocol netlink protocol @arg msgtype netlink message type