Lines Matching defs:unit
123 int unit = minor(dev);
127 if (unit == tp->tun_unit)
137 * Find zombie driver instance by unit number.
142 tun_find_zunit(int unit)
148 if (unit == tp->tun_unit)
155 printf("tun%d: inconsistent flags: %x\n", unit, tp->tun_flags);
162 tun_clone_create(struct if_clone *ifc, int unit)
166 if ((tp = tun_find_zunit(unit)) == NULL) {
170 tp->tun_unit = unit;
179 if_initname(&tp->tun_if, ifc->ifc_name, unit);