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
void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops*, void*), void* arg)
{
    struct nl_cache_ops* ops;

    nl_read_lock(&cache_ops_lock);
    for (ops = cache_ops; ops; ops = ops->co_next)
        cb(ops, arg);
    nl_read_unlock(&cache_ops_lock);
}
/**
 * Call a function for each registered cache operation
 * @arg cb		Callback function to be called
 * @arg arg		User specific argument.
 */
Call a function for each registered cache operation
@arg cb              Callback function to be called
@arg arg             User specific argument.
Call a function for each registered cache operation @arg cb Callback function to be called @arg arg User specific argument .
void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops*, void*), void* arg)
{
    struct nl_cache_ops* ops;
    nl_read_lock(&cache_ops_lock);
    for (ops = cache_ops; ops; ops = ops->co_next)
        cb(ops, arg);
    nl_read_unlock(&cache_ops_lock);
}
void nl_cache_ops_foreach ( void ( * cb ) ( struct nl_cache_ops * , void * ) , void * arg ) { struct nl_cache_ops * ops ; nl_read_lock ( & cache_ops_lock ) ; for ( ops = cache_ops ; ops ; ops = ops -> co_next ) cb ( ops , arg ) ; nl_read_unlock ( & cache_ops_lock ) ; }
Call a function for each registered cache operation
 @arg cb              Callback function to be called
 @arg arg             User specific argument.
Call a function for each registered cache operation @arg cb Callback function to be called @arg arg User specific argument .