Variables | |
struct nl_object_ops | qdisc_obj_ops |
Allocation/Freeing | |
struct rtnl_qdisc * | rtnl_qdisc_alloc (void) |
void | rtnl_qdisc_put (struct rtnl_qdisc *qdisc) |
Iterators | |
void | rtnl_qdisc_foreach_child (struct rtnl_qdisc *qdisc, struct nl_cache *cache, void(*cb)(struct nl_object *, void *), void *arg) |
Call a callback for each child class of a qdisc. More... | |
void | rtnl_qdisc_foreach_cls (struct rtnl_qdisc *qdisc, struct nl_cache *cache, void(*cb)(struct nl_object *, void *), void *arg) |
Call a callback for each filter attached to the qdisc. More... | |
Attributes | |
void | rtnl_qdisc_set_ifindex (struct rtnl_qdisc *qdisc, int ifindex) |
int | rtnl_qdisc_get_ifindex (struct rtnl_qdisc *qdisc) |
void | rtnl_qdisc_set_handle (struct rtnl_qdisc *qdisc, uint32_t handle) |
uint32_t | rtnl_qdisc_get_handle (struct rtnl_qdisc *qdisc) |
void | rtnl_qdisc_set_parent (struct rtnl_qdisc *qdisc, uint32_t parent) |
uint32_t | rtnl_qdisc_get_parent (struct rtnl_qdisc *qdisc) |
void | rtnl_qdisc_set_kind (struct rtnl_qdisc *qdisc, const char *name) |
char * | rtnl_qdisc_get_kind (struct rtnl_qdisc *qdisc) |
uint64_t | rtnl_qdisc_get_stat (struct rtnl_qdisc *qdisc, enum rtnl_tc_stats_id id) |
Qdisc Specific Options | |
struct nl_msg * | rtnl_qdisc_get_opts (struct rtnl_qdisc *qdisc) |
Return qdisc specific options for use in TCA_OPTIONS. More... | |
struct rtnl_qdisc* rtnl_qdisc_alloc | ( | void | ) |
References nl_object_alloc(), and qdisc_obj_ops.
Referenced by main(), and nl_cli_qdisc_alloc().
void rtnl_qdisc_foreach_child | ( | struct rtnl_qdisc * | qdisc, |
struct nl_cache * | cache, | ||
void(*)(struct nl_object *, void *) | cb, | ||
void * | arg | ||
) |
Call a callback for each child class of a qdisc.
References nl_cache_foreach_filter(), rtnl_class_alloc(), rtnl_class_put(), rtnl_class_set_ifindex(), rtnl_class_set_kind(), and rtnl_class_set_parent().
void rtnl_qdisc_foreach_cls | ( | struct rtnl_qdisc * | qdisc, |
struct nl_cache * | cache, | ||
void(*)(struct nl_object *, void *) | cb, | ||
void * | arg | ||
) |
Call a callback for each filter attached to the qdisc.
References nl_cache_foreach_filter(), rtnl_cls_alloc(), rtnl_cls_put(), rtnl_cls_set_ifindex(), and rtnl_cls_set_parent().
uint32_t rtnl_qdisc_get_handle | ( | struct rtnl_qdisc * | qdisc | ) |
int rtnl_qdisc_get_ifindex | ( | struct rtnl_qdisc * | qdisc | ) |
char* rtnl_qdisc_get_kind | ( | struct rtnl_qdisc * | qdisc | ) |
struct nl_msg* rtnl_qdisc_get_opts | ( | struct rtnl_qdisc * | qdisc | ) |
Return qdisc specific options for use in TCA_OPTIONS.
References NULL, rtnl_qdisc_ops::qo_get_opts, and rtnl_qdisc_lookup_ops().
uint32_t rtnl_qdisc_get_parent | ( | struct rtnl_qdisc * | qdisc | ) |
uint64_t rtnl_qdisc_get_stat | ( | struct rtnl_qdisc * | qdisc, |
enum rtnl_tc_stats_id | id | ||
) |
void rtnl_qdisc_put | ( | struct rtnl_qdisc * | qdisc | ) |
References nl_object_put().
Referenced by main().
void rtnl_qdisc_set_handle | ( | struct rtnl_qdisc * | qdisc, |
uint32_t | handle | ||
) |
References tca_set_handle().
Referenced by main(), and nl_cli_qdisc_parse_handle().
void rtnl_qdisc_set_ifindex | ( | struct rtnl_qdisc * | qdisc, |
int | ifindex | ||
) |
References tca_set_ifindex().
Referenced by main(), and nl_cli_qdisc_parse_dev().
void rtnl_qdisc_set_kind | ( | struct rtnl_qdisc * | qdisc, |
const char * | name | ||
) |
References __rtnl_qdisc_lookup_ops(), rtnl_qdisc::q_ops, and tca_set_kind().
Referenced by main(), and nl_cli_qdisc_parse_kind().
void rtnl_qdisc_set_parent | ( | struct rtnl_qdisc * | qdisc, |
uint32_t | parent | ||
) |
References tca_set_parent().
Referenced by main(), and nl_cli_qdisc_parse_parent().
struct nl_object_ops qdisc_obj_ops |
Referenced by rtnl_qdisc_alloc().