Class Object
[Queueing Classes]


Variables

struct nl_object_ops class_obj_ops

Function Documentation

struct rtnl_qdisc* rtnl_class_leaf_qdisc ( struct rtnl_class *  class,
struct nl_cache *  cache 
) [read]

Parameters:
class the parent class
cache a qdisc cache including at laest all qdiscs of the interface the specified class is attached to
Returns:
The qdisc from the cache or NULL if the class has no leaf qdisc

Definition at line 145 of file class_obj.c.

References rtnl_qdisc_get_by_parent().

void rtnl_class_foreach_child ( struct rtnl_class *  class,
struct nl_cache *  cache,
void(*)(struct nl_object *, void *)  cb,
void *  arg 
)

Parameters:
class the parent class
cache a class cache including all classes of the interface the specified class is attached to
cb callback function
arg argument to be passed to callback function

Definition at line 177 of file class_obj.c.

References nl_cache_foreach_filter().

void rtnl_class_foreach_cls ( struct rtnl_class *  class,
struct nl_cache *  cache,
void(*)(struct nl_object *, void *)  cb,
void *  arg 
)

Parameters:
class the parent class
cache a filter cache including at least all the filters attached to the specified class
cb callback function
arg argument to be passed to callback function

Definition at line 202 of file class_obj.c.

References nl_cache_foreach_filter().


Variable Documentation

struct nl_object_ops class_obj_ops

Initial value:

 {
        .oo_name                = "route/class",
        .oo_size                = sizeof(struct rtnl_class),
        .oo_free_data           = class_free_data,
        .oo_clone               = class_clone,
        .oo_dump[NL_DUMP_BRIEF] = class_dump_brief,
        .oo_dump[NL_DUMP_FULL]  = class_dump_full,
        .oo_dump[NL_DUMP_STATS] = class_dump_stats,
        .oo_compare             = tca_compare,
        .oo_id_attrs            = (TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE),
}

Definition at line 275 of file class_obj.c.


Generated on Thu May 28 01:01:27 2009 for libnl by  doxygen 1.5.7.1