Lines Matching defs:cb
468 struct nl_cb *cb;
477 cb = nl_cb_clone(sk->s_cb);
478 if (cb == NULL)
481 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, update_msg_parser, &x);
483 err = nl_recvmsgs(sk, cb);
489 nl_cb_put(cb);
520 struct nl_msgtype *type, change_func_t cb, void *data)
531 if (cb)
532 cb(cache, old, NL_ACT_DEL, data);
539 if (old == NULL && cb)
540 cb(cache, obj, NL_ACT_NEW, data);
542 if (nl_object_diff(old, obj) && cb)
543 cb(cache, obj, NL_ACT_CHANGE, data);
792 * @arg cb callback function
795 * Calls a callback function \a cb on each element of the \a cache.
799 void (*cb)(struct nl_object *, void *), void *arg)
801 nl_cache_foreach_filter(cache, NULL, cb, arg);
808 * @arg cb callback function
811 * Calls a callback function \a cb on each element of the \a cache
816 void (*cb)(struct nl_object *, void *), void *arg)
830 cb(obj, arg);