#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/skbuff.h>
#include <net/netlink.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>
struct multiq_sched_data { … };
static struct Qdisc *
multiq_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
{ … }
static int
multiq_enqueue(struct sk_buff *skb, struct Qdisc *sch,
struct sk_buff **to_free)
{ … }
static struct sk_buff *multiq_dequeue(struct Qdisc *sch)
{ … }
static struct sk_buff *multiq_peek(struct Qdisc *sch)
{ … }
static void
multiq_reset(struct Qdisc *sch)
{ … }
static void
multiq_destroy(struct Qdisc *sch)
{ … }
static int multiq_tune(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static int multiq_init(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static int multiq_dump(struct Qdisc *sch, struct sk_buff *skb)
{ … }
static int multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
struct Qdisc **old, struct netlink_ext_ack *extack)
{ … }
static struct Qdisc *
multiq_leaf(struct Qdisc *sch, unsigned long arg)
{ … }
static unsigned long multiq_find(struct Qdisc *sch, u32 classid)
{ … }
static unsigned long multiq_bind(struct Qdisc *sch, unsigned long parent,
u32 classid)
{ … }
static void multiq_unbind(struct Qdisc *q, unsigned long cl)
{ … }
static int multiq_dump_class(struct Qdisc *sch, unsigned long cl,
struct sk_buff *skb, struct tcmsg *tcm)
{ … }
static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl,
struct gnet_dump *d)
{ … }
static void multiq_walk(struct Qdisc *sch, struct qdisc_walker *arg)
{ … }
static struct tcf_block *multiq_tcf_block(struct Qdisc *sch, unsigned long cl,
struct netlink_ext_ack *extack)
{ … }
static const struct Qdisc_class_ops multiq_class_ops = …;
static struct Qdisc_ops multiq_qdisc_ops __read_mostly = …;
MODULE_ALIAS_NET_SCH(…) …;
static int __init multiq_module_init(void)
{ … }
static void __exit multiq_module_exit(void)
{ … }
module_init(…) …
module_exit(…)
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;