altqsw
static struct altqsw blue_sw =
static struct altqsw cbq_sw =
static struct altqsw cdnr_sw =
int naltqsw = sizeof (altqsw) / sizeof (altqsw[0]);
return (*altqsw[unit].d_open)(dev, flag, fmt, l);
return (*altqsw[unit].d_close)(dev, flag, fmt, l);
return (*altqsw[unit].d_ioctl)(dev, cmd, addr, flag, l);
if (unit == 0 || altqsw[unit].d_open != NULL)
altqsw[unit].dev = make_dev(&altq_cdevsw, unit,
altqsw[unit].d_name);
static struct altqsw noqdisc = {"noq", noopen, noclose, noioctl};
static struct altqsw noqdisc = {"noq"};
if (altqsw[type].d_open != noopen)
if (altqsw[type].d_open != NULL)
altqsw[type] = *mdata->altqsw; /* set discipline functions */
"altq/%s", altqsw[type].d_name);
altqsw[type].dev = make_dev(&altq_cdevsw, type, UID_ROOT, GID_WHEEL,
0644, "altq/%s", altqsw[type].d_name);
destroy_dev(altqsw[type].dev);
altqsw[type] = noqdisc;
static struct altqsw altqsw[] = { /* minor */
struct altqsw *altqsw; /* discipline functions */
static struct altqsw fifoq_sw =
static struct altqsw hfsc_sw =
static struct altqsw jobs_sw =
static struct altqsw localq_sw =
static struct altqsw priq_sw =
static struct altqsw red_sw =
static struct altqsw rio_sw =
static struct altqsw wfq_sw =