/* $OpenBSD: altq_localq.c,v 1.3 2001/08/16 13:05:24 kjc Exp $ */ /* $KAME: altq_localq.c,v 1.4 2001/08/16 11:28:25 kjc Exp $ */ /* * a skeleton file for implementing a new queueing discipline. * this file is in the public domain. */ #include #include #include #include #include #include #include #include /* * localq device interface */ altqdev_decl(localq); int localqopen(dev, flag, fmt, p) dev_t dev; int flag, fmt; struct proc *p; { /* everything will be done when the queueing scheme is attached. */ return 0; } int localqclose(dev, flag, fmt, p) dev_t dev; int flag, fmt; struct proc *p; { int error = 0; return error; } int localqioctl(dev, cmd, addr, flag, p) dev_t dev; ioctlcmd_t cmd; caddr_t addr; int flag; struct proc *p; { int error = 0; return error; } #ifdef KLD_MODULE static struct altqsw localq_sw = {"localq", localqopen, localqclose, localqioctl}; ALTQ_MODULE(altq_localq, ALTQT_LOCALQ, &localq_sw); #endif /* KLD_MODULE */