No empty .Rs/.Re
[netbsd-mini2440.git] / sys / altq / altq_localq.c
blob21c5205d5cab6fd9c017a280547dca5cac4d6889
1 /* $NetBSD: altq_localq.c,v 1.9 2006/11/16 01:32:37 christos Exp $ */
2 /* $KAME: altq_localq.c,v 1.7 2003/07/10 12:07:48 kjc Exp $ */
3 /*
4 * a skeleton file for implementing a new queueing discipline.
5 * this file is in the public domain.
6 */
8 #include <sys/cdefs.h>
9 __KERNEL_RCSID(0, "$NetBSD: altq_localq.c,v 1.9 2006/11/16 01:32:37 christos Exp $");
11 #ifdef _KERNEL_OPT
12 #include "opt_altq.h"
13 #endif
15 #ifdef ALTQ_LOCALQ /* localq is enabled by ALTQ_LOCALQ option in opt_altq.h */
17 #include <sys/param.h>
18 #include <sys/mbuf.h>
19 #include <sys/socket.h>
20 #include <sys/sockio.h>
22 #include <net/if.h>
23 #include <netinet/in.h>
25 #include <altq/altq.h>
26 #include <altq/altq_conf.h>
28 #ifdef ALTQ3_COMPAT
30 * localq device interface
32 altqdev_decl(localq);
34 int
35 localqopen(dev_t dev, int flag, int fmt,
36 struct lwp *l)
38 /* everything will be done when the queueing scheme is attached. */
39 return 0;
42 int
43 localqclose(dev_t dev, int flag, int fmt,
44 struct lwp *l)
46 int error = 0;
48 return error;
51 int
52 localqioctl(dev_t dev, ioctlcmd_t cmd, void *addr,
53 int flag, struct lwp *l)
55 int error = 0;
57 return error;
60 #ifdef KLD_MODULE
62 static struct altqsw localq_sw =
63 {"localq", localqopen, localqclose, localqioctl};
65 ALTQ_MODULE(altq_localq, ALTQT_LOCALQ, &localq_sw);
67 #endif /* KLD_MODULE */
69 #endif /* ALTQ3_COMPAT */
70 #endif /* ALTQ_LOCALQ */