Lines Matching defs:unit
713 int unit;
754 * unit (2).
764 if (split(cp, l, buf, sizeof buf, &unit)) {
780 nv->nv_ifunit = unit; /* XXX XXX XXX */
788 nv->nv_num = makedev(maj, unit * maxpartitions + part);
905 newdevi(const char *name, int unit, struct devbase *d)
911 i->i_unit = unit;
926 if (unit >= d->d_umax)
927 d->d_umax = unit + 1;
933 * another device instead) plus unit number.
1085 int unit;
1088 if (split(name, strlen(name), base, sizeof base, &unit)) {
1277 int unit;
1296 if (split(at, l+1, base, sizeof base, &unit)) {
1303 unit = STAR;
1335 * 1. unit is not STAR. Consider 'at'
1340 * 2. unit is STAR and 'at' references
1345 * 3. unit is STAR and 'at' references
1350 if ((unit != STAR && /* Case */
1352 (unit == STAR &&
1420 int unit;
1428 if (split(name, strlen(name), buf, sizeof(buf), &unit)) {
1467 if (unit == STAR)
1470 snprintf(buf, sizeof(buf), "%s%d", fakename, unit);
1659 int unit;
1662 if (split(name, strlen(name), base, sizeof base, &unit)) {
1676 i = newdevi(name, unit, d);
1724 * Split a name like "foo0" into base name (foo) and unit number (0).