Home
last modified time | relevance | path

Searched refs:nl_object (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/libnl/include/netlink/
Dobject.h23 struct nl_object;
26 #define OBJ_CAST(ptr) ((struct nl_object *) (ptr))
29 extern struct nl_object * nl_object_alloc(struct nl_object_ops *);
31 struct nl_object **);
32 extern void nl_object_free(struct nl_object *);
33 extern struct nl_object * nl_object_clone(struct nl_object *obj);
34 extern int nl_object_update(struct nl_object *dst,
35 struct nl_object *src);
36 extern void nl_object_get(struct nl_object *);
37 extern void nl_object_put(struct nl_object *);
[all …]
Dcache.h37 typedef void (*change_func_t)(struct nl_cache *, struct nl_object *, int, void *);
38 typedef void (*change_func_v2_t)(struct nl_cache *, struct nl_object *old_obj,
39 struct nl_object *new_obj, uint64_t, int, void *);
50 struct nl_object *);
52 extern struct nl_object * nl_cache_get_first(struct nl_cache *);
53 extern struct nl_object * nl_cache_get_last(struct nl_cache *);
54 extern struct nl_object * nl_cache_get_next(struct nl_object *);
55 extern struct nl_object * nl_cache_get_prev(struct nl_object *);
64 struct nl_object *);
73 struct nl_object *);
[all …]
Dhashtable.h25 struct nl_object * obj;
42 struct nl_object *obj);
44 struct nl_object *obj);
46 extern struct nl_object * nl_hash_table_lookup(nl_hash_table_t *ht,
47 struct nl_object *obj);
Dnetlink.h45 struct nl_object;
90 struct nl_object **);
94 struct nl_object **result,
/third_party/libnl/lib/
Dobject.c37 static inline struct nl_object_ops *obj_ops(struct nl_object *obj) in obj_ops()
55 struct nl_object *nl_object_alloc(struct nl_object_ops *ops) in nl_object_alloc()
57 struct nl_object *new; in nl_object_alloc()
85 int nl_object_alloc_name(const char *kind, struct nl_object **result) in nl_object_alloc_name()
111 struct nl_object *nl_object_clone(struct nl_object *obj) in nl_object_clone()
113 struct nl_object *new; in nl_object_clone()
155 int nl_object_update(struct nl_object *dst, struct nl_object *src) in nl_object_update()
171 void nl_object_free(struct nl_object *obj) in nl_object_free()
205 void nl_object_get(struct nl_object *obj) in nl_object_get()
216 void nl_object_put(struct nl_object *obj) in nl_object_put()
[all …]
Dcache.c79 int nl_cache_nitems_filter(struct nl_cache *cache, struct nl_object *filter) in nl_cache_nitems_filter()
81 struct nl_object *obj; in nl_cache_nitems_filter()
120 struct nl_object *nl_cache_get_first(struct nl_cache *cache) in nl_cache_get_first()
126 struct nl_object, ce_list); in nl_cache_get_first()
133 struct nl_object *nl_cache_get_last(struct nl_cache *cache) in nl_cache_get_last()
139 struct nl_object, ce_list); in nl_cache_get_last()
146 struct nl_object *nl_cache_get_next(struct nl_object *obj) in nl_cache_get_next()
152 struct nl_object, ce_list); in nl_cache_get_next()
159 struct nl_object *nl_cache_get_prev(struct nl_object *obj) in nl_cache_get_prev()
165 struct nl_object, ce_list); in nl_cache_get_prev()
[all …]
Dhashtable.c87 struct nl_object* nl_hash_table_lookup(nl_hash_table_t *ht, in nl_hash_table_lookup()
88 struct nl_object *obj) in nl_hash_table_lookup()
118 int nl_hash_table_add(nl_hash_table_t *ht, struct nl_object *obj) in nl_hash_table_add()
162 int nl_hash_table_del(nl_hash_table_t *ht, struct nl_object *obj) in nl_hash_table_del()
/third_party/libnl/include/netlink-private/
Dobject-api.h196 struct nl_object struct
292 void (*oo_constructor)(struct nl_object *);
301 void (*oo_free_data)(struct nl_object *);
313 int (*oo_clone)(struct nl_object *, struct nl_object *);
324 void (*oo_dump[NL_DUMP_MAX+1])(struct nl_object *,
338 uint64_t (*oo_compare)(struct nl_object *, struct nl_object *,
352 int (*oo_update)(struct nl_object *, struct nl_object *);
362 void (*oo_keygen)(struct nl_object *, uint32_t *, uint32_t);
369 uint32_t (*oo_id_attrs_get)(struct nl_object *);
Dcache-api.h152 int (*pp_cb)(struct nl_object *, struct nl_parser_param *);
224 int (*co_event_filter)(struct nl_cache *, struct nl_object *obj);
239 int (*co_include_event)(struct nl_cache *cache, struct nl_object *obj,
/third_party/libnl/python/netlink/
Dcapi.i253 void (*cb)(struct nl_object *, void *),
259 struct nl_object *cast_obj(void *obj) in cast_obj()
261 return (struct nl_object *) obj; in cast_obj()
264 struct nl_object *object_alloc_name(const char *name) in object_alloc_name()
266 struct nl_object *obj; in object_alloc_name()
275 extern struct nl_object *nl_object_alloc(struct nl_object_ops *);
276 extern void nl_object_free(struct nl_object *);
277 extern struct nl_object *nl_object_clone(struct nl_object *);
278 extern void nl_object_get(struct nl_object *);
279 extern void nl_object_put(struct nl_object *);
[all …]
/third_party/libnl/include/netlink-private/route/
Dtc-api.h104 extern void rtnl_tc_free_data(struct nl_object *);
105 extern int rtnl_tc_clone(struct nl_object *,
106 struct nl_object *);
107 extern void rtnl_tc_dump_line(struct nl_object *,
109 extern void rtnl_tc_dump_details(struct nl_object *,
111 extern void rtnl_tc_dump_stats(struct nl_object *,
113 extern uint64_t rtnl_tc_compare(struct nl_object *,
114 struct nl_object *,
/third_party/libnl/src/
Dnl-tctree-list.c28 static void print_qdisc(struct nl_object *, void *);
44 static void print_class(struct nl_object *obj, void *arg) in print_class()
56 print_qdisc((struct nl_object *) leaf, (char *) arg + 2); in print_class()
82 static void print_qdisc(struct nl_object *obj, void *arg) in print_qdisc()
101 static void print_link(struct nl_object *obj, void *arg) in print_link()
115 print_qdisc((struct nl_object *) qdisc, (void *) 2); in print_link()
121 print_qdisc((struct nl_object *) qdisc, (void *) 2); in print_link()
127 print_qdisc((struct nl_object *) qdisc, (void *) 2); in print_link()
/third_party/libnl/lib/fib_lookup/
Dlookup.c52 static void result_free_data(struct nl_object *obj) in result_free_data()
60 static int result_clone(struct nl_object *_dst, struct nl_object *_src) in result_clone()
112 err = pp->pp_cb((struct nl_object *) res, pp); in result_msg_parser()
126 static void result_dump_line(struct nl_object *obj, struct nl_dump_params *p) in result_dump_line()
141 static void result_dump_details(struct nl_object *obj, struct nl_dump_params *p) in result_dump_details()
146 static uint64_t result_compare(struct nl_object *_a, struct nl_object *_b, in result_compare()
164 nl_object_put((struct nl_object *) res); in flnl_result_put()
Drequest.c37 static void request_free_data(struct nl_object *obj) in request_free_data()
45 static int request_clone(struct nl_object *_dst, struct nl_object *_src) in request_clone()
57 static uint64_t request_compare(struct nl_object *_a, struct nl_object *_b, in request_compare()
/third_party/libnl/lib/genl/
Dfamily.c40 static void family_constructor(struct nl_object *c) in family_constructor()
48 static void family_free_data(struct nl_object *c) in family_free_data()
69 static int family_clone(struct nl_object *_dst, struct nl_object *_src) in family_clone()
93 static void family_dump_line(struct nl_object *obj, struct nl_dump_params *p) in family_dump_line()
113 static void family_dump_details(struct nl_object *obj, struct nl_dump_params *p) in family_dump_details()
148 static void family_dump_stats(struct nl_object *obj, struct nl_dump_params *p) in family_dump_stats()
153 static uint64_t family_compare(struct nl_object *_a, struct nl_object *_b, in family_compare()
200 nl_object_put((struct nl_object *) family); in genl_family_put()
/third_party/libnl/python/netlink/route/
Dcapi.i25 struct nl_object *link2obj(struct rtnl_link *link) in link2obj()
30 struct rtnl_link *obj2link(struct nl_object *obj) in obj2link()
54 extern struct nl_object *link2obj(struct rtnl_link *);
55 extern struct rtnl_link *obj2link(struct nl_object *);
336 struct nl_object *qdisc2obj(struct rtnl_qdisc *qdisc) in qdisc2obj()
341 struct rtnl_qdisc *obj2qdisc(struct nl_object *obj) in obj2qdisc()
346 struct nl_object *class2obj(struct rtnl_class *cl) in class2obj()
351 struct rtnl_class *obj2class(struct nl_object *obj) in obj2class()
356 struct nl_object *cls2obj(struct rtnl_cls *cls) in cls2obj()
361 struct rtnl_cls *obj2cls(struct nl_object *obj) in obj2cls()
[all …]
/third_party/libnl/lib/idiag/
Didiag_req_obj.c32 nl_object_get((struct nl_object *) req); in idiagnl_req_get()
37 nl_object_put((struct nl_object *) req); in idiagnl_req_put()
129 static void idiag_req_dump_line(struct nl_object *a, struct nl_dump_params *p) in idiag_req_dump_line()
141 static void idiag_req_dump_details(struct nl_object *a, struct nl_dump_params *p) in idiag_req_dump_details()
159 static void idiag_req_dump_stats(struct nl_object *obj, struct nl_dump_params *p) in idiag_req_dump_stats()
164 static void idiagnl_req_free(struct nl_object *a) in idiagnl_req_free()
174 static int idiagnl_req_clone(struct nl_object *_dst, struct nl_object *_src) in idiagnl_req_clone()
Didiag_vegasinfo_obj.c31 nl_object_get((struct nl_object *) vinfo); in idiagnl_vegasinfo_get()
36 nl_object_put((struct nl_object *) vinfo); in idiagnl_vegasinfo_put()
88 static uint64_t idiagnl_vegasinfo_compare(struct nl_object *_a, struct nl_object *_b, in idiagnl_vegasinfo_compare()
Didiag_meminfo_obj.c31 nl_object_get((struct nl_object *) minfo); in idiagnl_meminfo_get()
36 nl_object_put((struct nl_object *) minfo); in idiagnl_meminfo_put()
85 static uint64_t idiagnl_meminfo_compare(struct nl_object *_a, struct nl_object *_b, in idiagnl_meminfo_compare()
Didiag_msg_obj.c63 nl_object_get((struct nl_object *) msg); in idiagnl_msg_get()
68 nl_object_put((struct nl_object *) msg); in idiagnl_msg_put()
82 err = pp->pp_cb((struct nl_object *) msg, pp); in idiagnl_msg_parser()
428 static void idiag_msg_dump_line(struct nl_object *a, struct nl_dump_params *p) in idiag_msg_dump_line()
442 static void idiag_msg_dump_details(struct nl_object *a, struct nl_dump_params *p) in idiag_msg_dump_details()
475 static void idiag_msg_dump_stats(struct nl_object *obj, struct nl_dump_params *p) in idiag_msg_dump_stats()
614 static void idiagnl_msg_free(struct nl_object *a) in idiagnl_msg_free()
627 static int idiagnl_msg_clone(struct nl_object *_dst, struct nl_object *_src) in idiagnl_msg_clone()
662 …if (!(dst->idiag_meminfo = (struct idiagnl_meminfo *) nl_object_clone((struct nl_object *) src->id… in idiagnl_msg_clone()
668 …if (!(dst->idiag_vegasinfo = (struct idiagnl_vegasinfo *) nl_object_clone((struct nl_object *) src… in idiagnl_msg_clone()
[all …]
/third_party/libnl/lib/route/
Dnetconf.c84 static int netconf_clone(struct nl_object *_dst, struct nl_object *_src) in netconf_clone()
177 err = pp->pp_cb((struct nl_object *) nc, pp); in netconf_msg_parser()
192 static void netconf_dump_line(struct nl_object *obj, struct nl_dump_params *p) in netconf_dump_line()
282 static void netconf_keygen(struct nl_object *obj, uint32_t *hashkey, in netconf_keygen()
302 static uint64_t netconf_compare(struct nl_object *_a, struct nl_object *_b, in netconf_compare()
326 static int netconf_update(struct nl_object *old_obj, struct nl_object *new_obj) in netconf_update()
393 nl_object_get((struct nl_object *) nc); in rtnl_netconf_get_by_idx()
403 nl_object_put((struct nl_object *) nc); in rtnl_netconf_put()
Dclass.c90 nl_object_put((struct nl_object *) class); in rtnl_class_put()
364 nl_object_get((struct nl_object *) class); in rtnl_class_get()
395 nl_object_get((struct nl_object *) class); in rtnl_class_get_by_parent()
417 void (*cb)(struct nl_object *, void *), void *arg) in rtnl_class_foreach_child() argument
440 void (*cb)(struct nl_object *, void *), void *arg) in rtnl_class_foreach_cls() argument
451 nl_cache_foreach_filter(cache, (struct nl_object *) filter, cb, arg); in rtnl_class_foreach_cls()
Dneigh.c179 static void neigh_free_data(struct nl_object *c) in neigh_free_data()
190 static int neigh_clone(struct nl_object *_dst, struct nl_object *_src) in neigh_clone()
206 static void neigh_keygen(struct nl_object *obj, uint32_t *hashkey, in neigh_keygen()
265 static uint64_t neigh_compare(struct nl_object *_a, struct nl_object *_b, in neigh_compare()
317 static uint32_t neigh_id_attrs_get(struct nl_object *obj) in neigh_id_attrs_get()
346 err = pp->pp_cb((struct nl_object *) neigh, pp); in neigh_msg_parser()
488 static void neigh_dump_line(struct nl_object *a, struct nl_dump_params *p) in neigh_dump_line()
541 static void neigh_dump_details(struct nl_object *a, struct nl_dump_params *p) in neigh_dump_details()
557 static void neigh_dump_stats(struct nl_object *a, struct nl_dump_params *p) in neigh_dump_stats()
574 nl_object_put((struct nl_object *) neigh); in rtnl_neigh_put()
[all …]
/third_party/libnl/lib/netfilter/
Dqueue_obj.c32 static void nfnl_queue_dump(struct nl_object *a, struct nl_dump_params *p) in nfnl_queue_dump()
86 nl_object_get((struct nl_object *) queue); in nfnl_queue_get()
91 nl_object_put((struct nl_object *) queue); in nfnl_queue_put()
165 static uint64_t nfnl_queue_compare(struct nl_object *_a, struct nl_object *_b, in nfnl_queue_compare()
Dlog_obj.c30 static void nfnl_log_dump(struct nl_object *a, struct nl_dump_params *p) in nfnl_log_dump()
90 nl_object_get((struct nl_object *) log); in nfnl_log_get()
95 nl_object_put((struct nl_object *) log); in nfnl_log_put()
233 static uint64_t nfnl_log_compare(struct nl_object *_a, struct nl_object *_b, in nfnl_log_compare()

1234