Lines Matching refs:ops
70 struct nl_object_ops *ops; in nl_cache_nitems_filter() local
77 ops = cache->c_ops->co_obj_ops; in nl_cache_nitems_filter()
173 struct nl_cache *nl_cache_alloc(struct nl_cache_ops *ops) in nl_cache_alloc() argument
182 cache->c_ops = ops; in nl_cache_alloc()
189 int nl_cache_alloc_and_fill(struct nl_cache_ops *ops, struct nl_sock *sock, in nl_cache_alloc_and_fill() argument
195 if (!(cache = nl_cache_alloc(ops))) in nl_cache_alloc_and_fill()
214 struct nl_cache_ops *ops; in nl_cache_alloc_name() local
217 ops = nl_cache_ops_lookup(kind); in nl_cache_alloc_name()
218 if (!ops) in nl_cache_alloc_name()
221 if (!(cache = nl_cache_alloc(ops))) in nl_cache_alloc_name()
238 struct nl_object_ops *ops; in nl_cache_subset() local
248 ops = orig->c_ops->co_obj_ops; in nl_cache_subset()
452 struct nl_cache_ops *ops; member
460 return nl_cache_parse(x->ops, &msg->nm_src, msg->nm_nlh, x->params); in update_msg_parser()
470 .ops = cache->c_ops, in __cache_pickup()
560 struct nl_cache_ops *ops = cache->c_ops; in nl_cache_include() local
563 if (ops->co_obj_ops != obj->ce_ops) in nl_cache_include()
566 for (i = 0; ops->co_msgtypes[i].mt_id >= 0; i++) in nl_cache_include()
567 if (ops->co_msgtypes[i].mt_id == obj->ce_msgtype) in nl_cache_include()
568 return cache_include(cache, obj, &ops->co_msgtypes[i], in nl_cache_include()
634 int nl_cache_parse(struct nl_cache_ops *ops, struct sockaddr_nl *who, in nl_cache_parse() argument
639 if (!nlmsg_valid_hdr(nlh, ops->co_hdrsize)) in nl_cache_parse()
642 for (i = 0; ops->co_msgtypes[i].mt_id >= 0; i++) { in nl_cache_parse()
643 if (ops->co_msgtypes[i].mt_id == nlh->nlmsg_type) { in nl_cache_parse()
644 err = ops->co_msg_parser(ops, who, nlh, params); in nl_cache_parse()
757 struct nl_object_ops *ops; in nl_cache_dump_filter() local
769 ops = cache->c_ops->co_obj_ops; in nl_cache_dump_filter()
770 if (!ops->oo_dump[type]) in nl_cache_dump_filter()
819 struct nl_object_ops *ops; in nl_cache_foreach_filter() local
824 ops = cache->c_ops->co_obj_ops; in nl_cache_foreach_filter()